mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-11-30 08:11:55 +01:00
oops
This commit is contained in:
parent
3ffae40085
commit
a5ab80bf02
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue