Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/lib/badge/badgeService.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
throw new Error(`Unknown criteria type: ${criteria.type}`);
}
} catch (error) {
console.error(`Error evaluating criteria for badge ${badge.badgeId}:`, error);
console.error('Error evaluating criteria for badge', badge.badgeId, ':', error);
return {
unlocked: false,
progress: 0,
Expand Down Expand Up @@ -366,7 +366,7 @@
*
* @param {string} userId - User ID
* @param {string[]} badgeIds - Array of badge IDs to mark as viewed
* @returns {Promise<void>}
* @returns {Promise<void>}

Check failure on line 369 in src/lib/badge/badgeService.js

View workflow job for this annotation

GitHub Actions / Code checking

Delete `·`

Check failure on line 369 in src/lib/badge/badgeService.js

View workflow job for this annotation

GitHub Actions / Code checking

Delete `·`
*/
async markBadgesAsViewed(userId, badgeIds) {
try {
Expand Down
Loading