UBERF-9502: Account uuids in models (#8125)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Alexey Zinoviev
2025-03-05 12:22:15 +07:00
committed by GitHub
parent b96283ffc6
commit f3c231df0a
172 changed files with 2527 additions and 1122 deletions
@@ -1,4 +1,4 @@
import { PersonId, Doc, Ref, TxOperations } from '@hcengineering/core'
import { Doc, Ref, TxOperations, AccountUuid } from '@hcengineering/core'
import notification, { DocNotifyContext } from '@hcengineering/notification'
import { IntlString } from '@hcengineering/platform'
import { PersonSpace } from '@hcengineering/contact'
@@ -7,7 +7,7 @@ import github from '@hcengineering/github'
export async function createNotification (
client: TxOperations,
forDoc: Doc,
data: { user: PersonId, space: Ref<PersonSpace>, message: IntlString, props: Record<string, any> }
data: { user: AccountUuid, space: Ref<PersonSpace>, message: IntlString, props: Record<string, any> }
): Promise<void> {
let docNotifyContext = await client.findOne(notification.class.DocNotifyContext, { objectId: forDoc._id })