From 7c763600b7a5ee4ed9b414929bffba74a4901a19 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 ad5496d7ca..38e1bf549c 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');