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, '__');