mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
Fix avatar kind (#5705)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
42d8c4582c
commit
651d46d635
@ -241,6 +241,16 @@ export const contactOperation: MigrateOperation = {
|
||||
func: async (client) => {
|
||||
await migrateAvatars(client)
|
||||
}
|
||||
},
|
||||
{
|
||||
state: 'avatarsKind',
|
||||
func: async (client) => {
|
||||
await client.update(
|
||||
DOMAIN_CONTACT,
|
||||
{ avatarKind: { $exists: true } },
|
||||
{ $rename: { avatarKind: 'avatarType' } }
|
||||
)
|
||||
}
|
||||
}
|
||||
])
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user