From 87d13eacb6ec67e2dc78ed40ff3459a7ea564969 Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Mon, 20 Apr 2020 22:30:44 +0300 Subject: [PATCH] Fix pushing new build tasks --- src/Scheduler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Scheduler.ts b/src/Scheduler.ts index 951f4d1..b00f802 100644 --- a/src/Scheduler.ts +++ b/src/Scheduler.ts @@ -199,7 +199,7 @@ function calculateInsertTime(tasks: ImmutableTaskList, name: string, args: Args, if (villageId && !insertedTs) { for (let taskTypePred of TASK_TYPE_PREDICATES) { - const sameVillageAndTypePred = t => sameVillage(villageId, t.args) && taskTypePred(t.name); + const sameVillageAndTypePred = t => sameVillage(villageId, t.args) && taskTypePred(name); insertedTs = lastTaskTime(tasks, sameVillageAndTypePred); if (insertedTs) { insertedTs += 1;