Skip to content

Commit

Permalink
Merge ddb87dc into 57ba8ab
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Nov 30, 2023
2 parents 57ba8ab + ddb87dc commit 78a821c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions lib/models/notices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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, '__');
Expand Down

0 comments on commit 78a821c

Please sign in to comment.