summaryrefslogtreecommitdiff
path: root/src/api/models
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-11-06 22:22:48 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-11-06 22:22:48 +0900
commitb06950d5e70bc9b6321f6e144042caf1f3397d0d (patch)
tree79a32e93d505b3b6d93808cc6cc2cf673657a117 /src/api/models
parentFix index creation (diff)
downloadsharkey-b06950d5e70bc9b6321f6e144042caf1f3397d0d.tar.gz
sharkey-b06950d5e70bc9b6321f6e144042caf1f3397d0d.tar.bz2
sharkey-b06950d5e70bc9b6321f6e144042caf1f3397d0d.zip
ハッシュ値はMongoDB側で管理されているから手動でインデックスを明示する必要はなさそうだ
Diffstat (limited to 'src/api/models')
-rw-r--r--src/api/models/drive-file.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/api/models/drive-file.ts b/src/api/models/drive-file.ts
index 976c97e188..802ee5a5fe 100644
--- a/src/api/models/drive-file.ts
+++ b/src/api/models/drive-file.ts
@@ -3,8 +3,6 @@ import monkDb, { nativeDbConn } from '../../db/mongodb';
const collection = monkDb.get('drive_files.files');
-(collection as any).createIndex('md5'); // fuck type definition
-
export default collection as any; // fuck type definition
const getGridFSBucket = async (): Promise<mongodb.GridFSBucket> => {