diff --git a/backend/services/falukantService.js b/backend/services/falukantService.js index 10ccebf..7b13dc1 100644 --- a/backend/services/falukantService.js +++ b/backend/services/falukantService.js @@ -5583,9 +5583,11 @@ class FalukantService extends BaseService { limit, }); - await enrichNotificationsWithCharacterNames(rows); + // Convert to plain objects so we can add properties + const plainRows = rows.map(r => r.get({ plain: true })); + await enrichNotificationsWithCharacterNames(plainRows); - return { items: rows, total: count, page: Number(page) || 1, size: limit }; + return { items: plainRows, total: count, page: Number(page) || 1, size: limit }; } async markNotificationsShown(hashedUserId) {