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.
2 parents 3c642a0 + 8e02138 commit fba1a87Copy full SHA for fba1a87
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