From 68349e09226afb9ac580bfb2fd22e2260e794af5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 12 Aug 2018 03:09:22 +0900 Subject: [PATCH] Fix #2162 --- 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 ad5496d7c..38e1bf549 100644 --- a/src/models/drive-file.ts +++ b/src/models/drive-file.ts @@ -10,7 +10,7 @@ import DriveFileThumbnail, { deleteDriveFileThumbnail } from './drive-file-thumb const DriveFile = monkDb.get('driveFiles.files'); DriveFile.createIndex('md5'); -DriveFile.createIndex(['metadata.uri', 'metadata.userId'], { sparse: true, unique: true }); +DriveFile.createIndex('metadata.uri'); export default DriveFile; export const DriveFileChunk = monkDb.get('driveFiles.chunks');