diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-06 22:10:40 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-06 22:10:40 +0900 |
| commit | 6df3db23d6277e48e68bd4a9ee78d1ac4576332c (patch) | |
| tree | ca435dd45d3e5174a0fcd47599841adce6a28e77 /src/api/models | |
| parent | Refactor (diff) | |
| download | sharkey-6df3db23d6277e48e68bd4a9ee78d1ac4576332c.tar.gz sharkey-6df3db23d6277e48e68bd4a9ee78d1ac4576332c.tar.bz2 sharkey-6df3db23d6277e48e68bd4a9ee78d1ac4576332c.zip | |
Fix index creation
Diffstat (limited to 'src/api/models')
| -rw-r--r-- | src/api/models/drive-file.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/models/drive-file.ts b/src/api/models/drive-file.ts index 8968d065cd..976c97e188 100644 --- a/src/api/models/drive-file.ts +++ b/src/api/models/drive-file.ts @@ -3,7 +3,7 @@ import monkDb, { nativeDbConn } from '../../db/mongodb'; const collection = monkDb.get('drive_files.files'); -(collection as any).createIndex('hash'); // fuck type definition +(collection as any).createIndex('md5'); // fuck type definition export default collection as any; // fuck type definition |