UBERF-8595: Fix backup/restore performance (#7188)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-11-22 13:23:50 +07:00
committed by GitHub
parent 1e2b3645b0
commit e63bbd563b
30 changed files with 498 additions and 370 deletions
@@ -27,7 +27,7 @@ export async function createNotification (
const existing = await client.findOne(notification.class.CommonInboxNotification, {
user: data.user,
message: data.message,
props: data.props
...Object.fromEntries(Object.entries(data.props).map(([k, v]) => [`props.${k}`, v]))
})
if (existing !== undefined) {
await client.update(existing, {