From fe1e7770f9b113e4ae5a0fd4f1dbbc13df07849b Mon Sep 17 00:00:00 2001 From: "Ch. (Chanhwi Choi)" Date: Thu, 2 May 2019 06:24:54 +0900 Subject: [PATCH] add userId to migrateFolder (#4829) after migration folders are blown up because folder has no userId. --- src/migrate.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/migrate.ts b/src/migrate.ts index 90960174d..4a636d0d8 100644 --- a/src/migrate.ts +++ b/src/migrate.ts @@ -184,6 +184,7 @@ async function main() { async function migrateDriveFolder(folder: any) { await DriveFolders.save({ id: folder._id.toHexString(), + userId: folder.userId.toHexString(), createdAt: folder.createdAt || new Date(), name: folder.name, parentId: folder.parentId ? folder.parentId.toHexString() : null,