Skip to content

Commit

Permalink
ZO-4267: Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
louika authored and stollero committed Mar 8, 2024
1 parent 5bdbede commit 432dc3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/zeit/connector/postgresql.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def _add_lock(self, id, principal, until):
if path is None:
log.warning('Unable to add lock to resource %s that does not exist.', str(id))
return
stmt = Lock.create(path=path, principal=principal, until=until)
stmt = Lock.create(path, principal, until)
self.session.execute(stmt)
return self.session.get(Lock, (path.parent_path, path.name, path.id)).token

Expand Down

0 comments on commit 432dc3e

Please sign in to comment.