Skip to content

Commit 6b3b84d

Browse files
committed
Fix error when Admin deletes a file
1 parent 2bcea68 commit 6b3b84d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repositories/file/DynamoDBRepository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class DynamoDBRepository implements FileRepository {
161161
},
162162
ReturnValues: 'ALL_OLD',
163163
ConditionExpression: user === null ? undefined : '#object.#key = :userId',
164-
ExpressionAttributeNames: {
164+
ExpressionAttributeNames: user === null ? undefined : {
165165
'#object': 'user',
166166
'#key': 'id',
167167
},

0 commit comments

Comments
 (0)