Fix pushing new build tasks
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user