From ddb87dce5706c3582b780797f12c7b7cce2791bc Mon Sep 17 00:00:00 2001 From: Alvaro Vega Date: Thu, 30 Nov 2023 15:07:56 +0100 Subject: [PATCH] Update notices.js --- lib/models/notices.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/models/notices.js b/lib/models/notices.js index b338eed0..ea306c40 100644 --- a/lib/models/notices.js +++ b/lib/models/notices.js @@ -48,9 +48,7 @@ const { v1: uuidv1 } = require('uuid'); function processCBv2Notice(service, subservice, ncr, ix) { var n = {}, pp, - temp, - date, - metaDate; + temp; n.noticeId = uuidv1(); n.noticeTS = Date.now(); @@ -107,15 +105,6 @@ function processCBv2Notice(service, subservice, ncr, ix) { } } } - // Add descriptive information in errors - if (date instanceof Error) { - date.message = 'Invalid DateTime attribute: ' + date.message; - return date; - } - if (metaDate instanceof Error) { - metaDate.message = 'Invalid DateTime attribute metadata: ' + metaDate.message; - return metaDate; - } Object.keys(n).forEach(function(p) { //Change dots in key to double-underscore as in rules to avoid confusing EPL engine pp = p.replace(/\./g, '__');