Skip to content
Snippets Groups Projects
Commit a5ab80bf authored by syuilo's avatar syuilo
Browse files

oops

parent 3ffae400
No related branches found
No related tags found
No related merge requests found
......@@ -114,13 +114,13 @@ export const pack = (
let _file: any;
// Populate the file if 'file' is ID
if (mongodb.ObjectID.prototype.isPrototypeOf(file)) {
if (mongo.ObjectID.prototype.isPrototypeOf(file)) {
_file = await DriveFile.findOne({
_id: file
});
} else if (typeof file === 'string') {
_file = await DriveFile.findOne({
_id: new mongodb.ObjectID(file)
_id: new mongo.ObjectID(file)
});
} else {
_file = deepcopy(file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment