Skip to content

Commit

Permalink
fix: lock attribute value
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen committed Sep 7, 2024
1 parent 8c79bd5 commit 4ee2c7d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/api/src/lib/locks.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ export const acquireLock = async (key, ttl = 900) => {
"#expires": "_expires",
},
ExpressionAttributeValues: {
":now": {
N: `${Math.floor(Date.now() / 1000)}`,
},
":now": Math.floor(Date.now() / 1000),
},
},
);
Expand Down

0 comments on commit 4ee2c7d

Please sign in to comment.