mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-22 00:10:37 +00:00
Qfix: account migration (#6787)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
8a8f56fda4
commit
386965194d
@ -170,6 +170,13 @@ export async function moveAccountDbFromMongoToPG (
|
|||||||
_id: mongoWorkspace._id.toString()
|
_id: mongoWorkspace._id.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// delete deprecated fields
|
||||||
|
delete (pgWorkspace as any).createProgress
|
||||||
|
delete (pgWorkspace as any).creating
|
||||||
|
delete (pgWorkspace as any).productId
|
||||||
|
delete (pgWorkspace as any).organisation
|
||||||
|
|
||||||
|
// assigned separately
|
||||||
delete (pgWorkspace as any).accounts
|
delete (pgWorkspace as any).accounts
|
||||||
|
|
||||||
const exists = await getWorkspaceById(pgDb, pgWorkspace.workspace)
|
const exists = await getWorkspaceById(pgDb, pgWorkspace.workspace)
|
||||||
|
Loading…
Reference in New Issue
Block a user