From 951b2346ab5760490aa408f147cc17ce4548ca52 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 10 Jun 2018 08:15:05 +0900 Subject: [PATCH] :v: --- src/models/drive-file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/drive-file.ts b/src/models/drive-file.ts index bb98c11a93..5fa76f4bf8 100644 --- a/src/models/drive-file.ts +++ b/src/models/drive-file.ts @@ -9,7 +9,7 @@ import User from './user'; import DriveFileThumbnail, { deleteDriveFileThumbnail } from './drive-file-thumbnail'; const DriveFile = monkDb.get('driveFiles.files'); -DriveFile.createIndex('md5'); +DriveFile.createIndex('md5', { sparse: true }); DriveFile.createIndex('metadata.uri', { sparse: true, unique: true }); export default DriveFile;