Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Background Job To Look At IDs #14

Open
asheliahut opened this issue Feb 9, 2023 · 0 comments
Open

Update Background Job To Look At IDs #14

asheliahut opened this issue Feb 9, 2023 · 0 comments

Comments

@asheliahut
Copy link
Contributor

The background job currently looks at the Start Date to determine whether a new award for a tracked recipient is new.
This thinking is flawed and should actually check against the list of saved IDs in the Awards table of the database under the column usaSpendingAwardId. This way if a new id is seen it will then get shown to the slack channel accordingly.

line 22 of background-jobs/check-latest-awards.ts needs updating to pull only all the award IDs and the UEI of the recpient used for searching.

line 37 onwards in the same file until line 52 needds to be replaced with new logic to check against ids in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant