We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c642a0 commit 8e02138Copy full SHA for 8e02138
backend/src/reports/reports.service.ts
@@ -427,6 +427,7 @@ export class ReportsService {
427
id,
428
}),
429
UpdateExpression: 'SET bookmarked = :bookmarked, updatedAt = :updatedAt',
430
+ ConditionExpression: 'userId = :userId', // Add condition to ensure we're updating the right user's report
431
ExpressionAttributeValues: marshall({
432
':bookmarked': bookmarked,
433
':updatedAt': new Date().toISOString(),
0 commit comments