Use job id util when splicing job loc

This commit is contained in:
Vortrex
2022-01-04 15:13:22 -06:00
parent 4217d321e5
commit 8ef5b6af3e

View File

@@ -946,7 +946,7 @@ function deleteJobLocationCommand(command, params, client) {
let tempIndex = closestJobLocation.index;
let tempJob = closestJobLocation.job;
deleteJobLocation(closestJobLocation);
getJobData(tempJob).locations.splice(tempIndex, 1);
getJobData(getJobIdFromDatabaseId(tempJob)).locations.splice(tempIndex, 1);
}
// ===========================================================================