Write meta info to automatic events

This commit is contained in:
D. Berge
2023-09-29 16:49:27 +02:00
parent 64fceb0a01
commit d408665d62
2 changed files with 6 additions and 4 deletions

View File

@@ -69,7 +69,7 @@ class DetectFDSP {
point: prev._point, point: prev._point,
remarks: "Last shotpoint of the day", remarks: "Last shotpoint of the day",
labels: ["LDSP", "Prod"], labels: ["LDSP", "Prod"],
meta: {auto: true, insertedBy: this.constructor.name} meta: {auto: true, author: `*${this.constructor.name}*`}
}; };
const fdsp = { const fdsp = {
@@ -77,7 +77,7 @@ class DetectFDSP {
point: cur._point, point: cur._point,
remarks: "First shotpoint of the day", remarks: "First shotpoint of the day",
labels: ["FDSP", "Prod"], labels: ["FDSP", "Prod"],
meta: {auto: true, insertedBy: this.constructor.name} meta: {auto: true, author: `*${this.constructor.name}*`}
}; };
INFO("LDSP", ldsp); INFO("LDSP", ldsp);

View File

@@ -68,7 +68,8 @@ class DetectSOLEOL {
sequence, sequence,
point: cur._point, point: cur._point,
remarks, remarks,
labels labels,
meta: {auto: true, author: `*${this.constructor.name}*`}
} }
// console.log(projectId, payload); // console.log(projectId, payload);
@@ -101,7 +102,8 @@ class DetectSOLEOL {
sequence, sequence,
point: prev._point, point: prev._point,
remarks, remarks,
labels labels,
meta: {auto: true, author: `*${this.constructor.name}*`}
} }
// console.log(projectId, payload); // console.log(projectId, payload);