Remove obsolete handler

This commit is contained in:
Sven Slootweg 2022-11-24 17:17:54 +01:00
parent ea7cd67158
commit e2f2fb6cb1

View file

@ -102,10 +102,6 @@ module.exports = function(state) {
}).then(() => {
debug(`Task '${task.name}:${id}' locked successfully`);
return true;
}).catch({ name: "UniqueViolationError" }, () => {
// FIXME: This is not the correct error...
debug(`Task '${task.name}:${id}' failed lock because already locked on write`);
return false;
});
} else {
debug(`Task '${task.name}:${id}' failed lock because already locked on read`);