add userId to migrateFolder (#4829)
after migration folders are blown up because folder has no userId.
This commit is contained in:
parent
318ae0035f
commit
fe1e7770f9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user