Skip to content

Commit

Permalink
fix: lock expiry
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen committed Sep 7, 2024
1 parent aacff02 commit 9de7a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/lib/locks.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const acquireLock = async (key, ttl = 900) => {
sk: lockKey,
_expires: expires,
},
true,
false,
{
ConditionExpression: "attribute_not_exists(pk) OR #expires < :now",
ExpressionAttributeNames: {
Expand Down

0 comments on commit 9de7a8d

Please sign in to comment.