Skip to content

Commit c05abc1

Browse files
committed
Fixed bug with updated objectid alias
1 parent 98fe32d commit c05abc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gridfs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class GridFsStorage extends EventEmitter implements StorageEngine {
143143
// If an error occurs the emitted file information will contain the id
144144
const hasId = fileSettings.id;
145145
if (!hasId) {
146-
previous.id = new ObjectID();
146+
previous.id = new ObjectId();
147147
}
148148

149149
return {...previous, ...defaults, ...extra, ...fileSettings};

0 commit comments

Comments
 (0)