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
1 changed files with 1 additions and 0 deletions
|
@ -184,6 +184,7 @@ async function main() {
|
||||||
async function migrateDriveFolder(folder: any) {
|
async function migrateDriveFolder(folder: any) {
|
||||||
await DriveFolders.save({
|
await DriveFolders.save({
|
||||||
id: folder._id.toHexString(),
|
id: folder._id.toHexString(),
|
||||||
|
userId: folder.userId.toHexString(),
|
||||||
createdAt: folder.createdAt || new Date(),
|
createdAt: folder.createdAt || new Date(),
|
||||||
name: folder.name,
|
name: folder.name,
|
||||||
parentId: folder.parentId ? folder.parentId.toHexString() : null,
|
parentId: folder.parentId ? folder.parentId.toHexString() : null,
|
||||||
|
|
Loading…
Reference in a new issue