Fix pushing new build tasks
This commit is contained in:
parent
87d13eacb6
commit
2af1f3a4f8
@ -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(name);
|
||||
const sameVillageAndTypePred = t => taskTypePred(name) && t.args.villageId === villageId && t.name === name;
|
||||
insertedTs = lastTaskTime(tasks, sameVillageAndTypePred);
|
||||
if (insertedTs) {
|
||||
insertedTs += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user