mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 22:15:04 +02:00
eqms-1582: fix roles migration (#9230)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
@@ -542,9 +542,10 @@ async function migrateAccounts (client: MigrationClient): Promise<void> {
|
||||
accountUuidBySocialKey
|
||||
)
|
||||
|
||||
update[`${type.targetClass}`] = {
|
||||
[role._id]: newAssignees
|
||||
if (update[`${type.targetClass}`] == null) {
|
||||
update[`${type.targetClass}`] = {}
|
||||
}
|
||||
update[`${type.targetClass}`][role._id] = newAssignees
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user