From e2f2fb6cb1cc97fdbfd7cac4767bae3de36a4561 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Thu, 24 Nov 2022 17:17:54 +0100 Subject: [PATCH] Remove obsolete handler --- src/database-backends/postgresql/index.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/database-backends/postgresql/index.js b/src/database-backends/postgresql/index.js index 07cb6e5..78a9b40 100644 --- a/src/database-backends/postgresql/index.js +++ b/src/database-backends/postgresql/index.js @@ -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`);