Skip to content

Feat/daily_quest#223

Merged
phertyameen merged 3 commits intoMindBlockLabs:mainfrom
Mkalbani:feat/daily_quest
Jan 29, 2026
Merged

Feat/daily_quest#223
phertyameen merged 3 commits intoMindBlockLabs:mainfrom
Mkalbani:feat/daily_quest

Conversation

@Mkalbani
Copy link
Contributor

This closes #174

Implements the POST /daily-quest/complete endpoint to finalize Daily Quests.
The endpoint validates completion criteria, awards bonus XP once, and triggers streak updates, all within a transaction to ensure atomicity and safety against double submissions.

Key points

Validates today’s quest and completion status

Marks quest as completed and sets completedAt

Awards bonus XP once (idempotent behavior)

Updates user streak via the Streak provider

Transaction-safe and resistant to duplicate requests

Copy link
Member

@phertyameen phertyameen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image resolve this errorr please. there are unused injections in 'src/quests/providers/complete-daily-quest.provider.ts' that will trigger cicd errors...

@Mkalbani
Copy link
Contributor Author

@phertyameen done!!

Copy link
Member

@phertyameen phertyameen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is Perfect!. Thank you for your contribution.

@phertyameen phertyameen merged commit 21fe052 into MindBlockLabs:main Jan 29, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

POST /daily-quest/complete — Finalize Daily Quest Completion

2 participants