UBERF-7690: Performance fixes (#6336)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-08-15 17:30:25 +07:00
committed by GitHub
parent d502ba86d9
commit 87ded4d797
32 changed files with 200 additions and 103 deletions
@@ -112,12 +112,8 @@ export class InboxNotificationsClientImpl implements InboxNotificationsClient {
user: getCurrentAccount()._id
},
(result: InboxNotification[]) => {
result.sort((a, b) => (b.createdOn ?? b.modifiedOn) - (a.createdOn ?? a.modifiedOn))
this.otherInboxNotifications.set(result)
},
{
sort: {
createdOn: SortingOrder.Descending
}
}
)