summaryrefslogtreecommitdiff
path: root/src/api/models/drive-file.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-08-27 16:53:15 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-08-27 16:53:15 +0900
commit7172ccd72c2ef40d68a252d7ae5cf45ddc575116 (patch)
tree5be7a9eee3f9edebee31f7474fbc63d6ed15e644 /src/api/models/drive-file.ts
parentMerge pull request #732 from syuilo/greenkeeper/tslint-5.7.0 (diff)
downloadsharkey-7172ccd72c2ef40d68a252d7ae5cf45ddc575116.tar.gz
sharkey-7172ccd72c2ef40d68a252d7ae5cf45ddc575116.tar.bz2
sharkey-7172ccd72c2ef40d68a252d7ae5cf45ddc575116.zip
Use createIndex() instead of index() to avoid deprecation warnings
Diffstat (limited to 'src/api/models/drive-file.ts')
-rw-r--r--src/api/models/drive-file.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/models/drive-file.ts b/src/api/models/drive-file.ts
index 4c7204b1f4..8d158cf563 100644
--- a/src/api/models/drive-file.ts
+++ b/src/api/models/drive-file.ts
@@ -2,7 +2,7 @@ import db from '../../db/mongodb';
const collection = db.get('drive_files');
-(collection as any).index('hash'); // fuck type definition
+(collection as any).createIndex('hash'); // fuck type definition
export default collection as any; // fuck type definition