From b99f98982b3381e40b29b359e7d3b99c607bf068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Mon, 24 May 2021 19:42:53 +0100 Subject: [PATCH] fix: unneeded error handling --- migrations/1621430588944-notify-cashbox-removal.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/migrations/1621430588944-notify-cashbox-removal.js b/migrations/1621430588944-notify-cashbox-removal.js index 3be125b0..c41d30a0 100644 --- a/migrations/1621430588944-notify-cashbox-removal.js +++ b/migrations/1621430588944-notify-cashbox-removal.js @@ -22,9 +22,6 @@ exports.up = function (next) { return saveConfig(newConfig) .then(() => db.multi(sql, next)) .catch(err => { - if (err.message === 'lamassu-server is not configured') { - return next() - } return next(err) }) })