Skip to content

Commit 40ca14d

Browse files
committed
fix: lint
1 parent 42287da commit 40ca14d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/models/eventsFactory.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -960,12 +960,15 @@ class EventsFactory extends Factory {
960960
}
961961

962962
if (validObjectIds.length === 0) {
963-
return { updatedCount: 0, failedEventIds };
963+
return {
964+
updatedCount: 0,
965+
failedEventIds,
966+
};
964967
}
965968

966969
const collection = this.getCollection(this.TYPES.EVENTS);
967970
const found = await collection.find({ _id: { $in: validObjectIds } }).toArray();
968-
const foundByIdStr = new Map(found.map(doc => [ doc._id.toString(), doc ]));
971+
const foundByIdStr = new Map(found.map(doc => [doc._id.toString(), doc]));
969972

970973
for (const oid of validObjectIds) {
971974
const idStr = oid.toString();
@@ -1001,7 +1004,10 @@ class EventsFactory extends Factory {
10011004
}
10021005

10031006
if (ops.length === 0) {
1004-
return { updatedCount: 0, failedEventIds };
1007+
return {
1008+
updatedCount: 0,
1009+
failedEventIds,
1010+
};
10051011
}
10061012

10071013
const bulkResult = await collection.bulkWrite(ops, { ordered: false });

0 commit comments

Comments
 (0)