Skip to content

Commit 28db5a6

Browse files
committed
fixes
1 parent 3e74246 commit 28db5a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/botasaurus-server-js/src/task-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as fs from 'fs';
2-
import { isNotNullish } from "./null-utils";
2+
import { isNotNullish, isNullish } from "./null-utils";
33
import { createTask, db, Task } from "./models";
44
import { TaskResults } from "./task-results";
55
import { TaskStatus } from "./models";
@@ -139,7 +139,7 @@ async function normalizeAndDeduplicateChildrenTasks(ids: number[], parentId:numb
139139
}
140140

141141
if (removeDuplicatesBy) {
142-
if (removeDuplicatesBy in item) {
142+
if (removeDuplicatesBy in item && !isNullish(item[removeDuplicatesBy])) {
143143
if (!seen.has(item[removeDuplicatesBy])) {
144144
seen.add(item[removeDuplicatesBy])
145145
await ndjsonWriteStream.push(item)

0 commit comments

Comments
 (0)