You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Backend] scoreDecayService and scoreDecayJob are dead, broken code querying a non-existent table #7
src/services/scoreDecayService.ts queries a borrowers table that does not exist in any migration (scores live in the scores table), uses console.* in src/cron/scoreDecayJob.ts, and runScoreDecayJob is never wired into index.ts. Either the decay feature is unimplemented or this is stale code that would crash if ever invoked.
Acceptance criteria
Decide whether score decay is a real feature: if yes, rewrite against the actual scores schema and wire it into index.ts with logging and a lock; if no, delete both files
Replace console.log/console.error with the winston logger if the code is kept
I have experience debugging stale backend services and aligning service logic with actual database schemas. I'll first audit whether score decay is an active feature or unused code. If it's intended, I'll refactor it to use the existing scores table, replace all console.* usage with the Winston logger, and properly wire runScoreDecayJob into index.ts with a safe execution pattern (including locking to prevent duplicate runs). If it's not a real feature, I'll remove the unused service and cron job entirely.
In both cases, I'll add tests to cover the chosen approach and document the final decision in the services README for clarity.
🏆 @MarvyNwaokobia: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (226 total points). Track your full progress on GrantFox.
👏 Great work, @MarvyNwaokobia! Keep contributing to LabsCrypt.
Activity
Favourof commentedon Jun 20, 2026
Hi, Maintainer I will like to work on this issue.
MarvyNwaokobia commentedon Jun 21, 2026
I'd like to work on this issue.
I have experience debugging stale backend services and aligning service logic with actual database schemas. I'll first audit whether score decay is an active feature or unused code. If it's intended, I'll refactor it to use the existing
scorestable, replace allconsole.*usage with the Winston logger, and properly wirerunScoreDecayJobintoindex.tswith a safe execution pattern (including locking to prevent duplicate runs). If it's not a real feature, I'll remove the unused service and cron job entirely.In both cases, I'll add tests to cover the chosen approach and document the final decision in the services README for clarity.
grantfox-oss commentedon Jun 21, 2026
🦊 GrantFox — @MarvyNwaokobia has been assigned to this issue as part of the Official Campaign campaign!
Next steps:
Closes #7)Good luck! Track your progress on GrantFox.
grantfox-oss commentedon Jun 29, 2026
🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign campaign!
@MarvyNwaokobia's PR #39 was approved and merged by @ogazboiz.
🏆 @MarvyNwaokobia: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (226 total points). Track your full progress on GrantFox.
👏 Great work, @MarvyNwaokobia! Keep contributing to LabsCrypt.
fix(scores): rewrite scoreDecayService against actual scores schema