diff --git a/backend/src/reports/reports.service.ts b/backend/src/reports/reports.service.ts index 561b5e12..f8681b3a 100644 --- a/backend/src/reports/reports.service.ts +++ b/backend/src/reports/reports.service.ts @@ -427,6 +427,7 @@ export class ReportsService { id, }), UpdateExpression: 'SET bookmarked = :bookmarked, updatedAt = :updatedAt', + ConditionExpression: 'userId = :userId', // Add condition to ensure we're updating the right user's report ExpressionAttributeValues: marshall({ ':bookmarked': bookmarked, ':updatedAt': new Date().toISOString(),