fix: TS-Fehler in routes.ts (awardXP Signatur) und storage.ts (fehlende User-Felder in MemStorage)
continuous-integration/drone/push Build is passing

This commit is contained in:
NotiBot
2026-02-03 10:48:39 +01:00
parent 70de82e88f
commit 637bfb95f9
2 changed files with 18 additions and 2 deletions
+1 -2
View File
@@ -1315,7 +1315,6 @@ ${activeTasksWithLabels.slice(0, 5).map(t => `- [${t.priority}] [${t.label}] ${t
// BUG FIX: Removed duplicate DELETE /api/tasks/:id route (DUP-1)
// The correct one with auth + ownership check is at line ~925
});
// Notes API routes
app.get("/api/notes", async (req, res) => {
@@ -2216,7 +2215,7 @@ ${activeTasksWithLabels.slice(0, 5).map(t => `- [${t.priority}] [${t.label}] ${t
// Award XP if completed
if (challenge?.completedAt && challenge.xpReward) {
await gamificationService.awardXP(userId, challenge.xpReward, 'daily_challenge', undefined, {
await gamificationService.awardXP(userId, 'daily_challenge', challenge.xpReward, {
challengeType: challenge.challengeType,
});
}