Instrument getLineName to monitor probable cause of #165

This commit is contained in:
D. Berge
2021-10-06 02:12:05 +02:00
parent 74b3de5c26
commit ff4913c0a5

View File

@@ -1,3 +1,4 @@
const alert = require("../../../lib/alerts");
const configuration = require('../../configuration');
async function getDistance (client, payload) {
@@ -88,6 +89,13 @@ async function getPlanned (client) {
async function getLineName (client, projectId, payload) {
// FIXME TODO Get line name script from configuration
// Ref.: https://gitlab.com/wgp/dougal/software/-/issues/129
// This is to monitor #165
// https://gitlab.com/wgp/dougal/software/-/issues/incident/165
if (!payload?.line) {
alert({function: "getLineName", client, projectId, payload});
}
const planned = await getPlanned(client);
const previous = await getSequencesForLine(client, payload.line);