newStaffLDB-API #48
@ -12,7 +12,6 @@ const issueLabels = {
|
|||||||
|
|
||||||
async function processor(data) {
|
async function processor(data) {
|
||||||
log.out("issueService.processor: Issue received", "info");
|
log.out("issueService.processor: Issue received", "info");
|
||||||
console.log(data); // TEMPORARY MEASURE
|
|
||||||
let out = {};
|
let out = {};
|
||||||
out.labels = [issueLabels[data?.label] || 0, issueLabels["web-user"]];
|
out.labels = [issueLabels[data?.label] || 0, issueLabels["web-user"]];
|
||||||
out.title = data?.subject.replace(/<[^>]+>|[\*\$]/g, "");
|
out.title = data?.subject.replace(/<[^>]+>|[\*\$]/g, "");
|
||||||
|
Loading…
Reference in New Issue
Block a user