summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-12 06:20:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-12 06:20:53 +0900
commita5ab80bf02330db30da7707409164edbb77c245e (patch)
tree058ecf2c4411a80a224ffb6ab8aaa5567d9bc466 /src/models
parentサウンドのボリュームはデフォルトで50%に (diff)
downloadmisskey-a5ab80bf02330db30da7707409164edbb77c245e.tar.gz
misskey-a5ab80bf02330db30da7707409164edbb77c245e.tar.bz2
misskey-a5ab80bf02330db30da7707409164edbb77c245e.zip
oops
Diffstat (limited to 'src/models')
-rw-r--r--src/models/drive-file.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models/drive-file.ts b/src/models/drive-file.ts
index ff31ba05dd..80fe8e0300 100644
--- a/src/models/drive-file.ts
+++ b/src/models/drive-file.ts
@@ -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);