From 0668d05819e47d2c44216b765da098cc24b771bd Mon Sep 17 00:00:00 2001 From: Bastien Dumont <bdumont@grandlyon.com> Date: Tue, 27 Aug 2024 16:07:23 +0200 Subject: [PATCH] fix: prevent malformed pointId from re-running --- src/helpers/parsing.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/parsing.js b/src/helpers/parsing.js index caffed8..cad185a 100644 --- a/src/helpers/parsing.js +++ b/src/helpers/parsing.js @@ -1,5 +1,5 @@ // @ts-check -const { log } = require('cozy-konnector-libs') +const { log, errors } = require('cozy-konnector-libs') const moment = require('moment') const Sentry = require('@sentry/node') @@ -239,7 +239,7 @@ function parsePointId(pointId) { pointId: pointId, }, }) - throw new Error(errorMessage) + throw new Error(errors.USER_ACTION_NEEDED_ACCOUNT_REMOVED) } } -- GitLab