UBER-277 Reminders don't have notifications (#3315)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-06-01 12:48:36 +07:00
committed by GitHub
parent 58ba8fbe07
commit 2dfe0f330c
9 changed files with 79 additions and 7 deletions
+10
View File
@@ -15,13 +15,23 @@
import { Builder } from '@hcengineering/model'
import calendar from '@hcengineering/calendar'
import core, { Class, Doc } from '@hcengineering/core'
import serverNotification from '@hcengineering/server-notification'
import serverCalendar from '@hcengineering/server-calendar'
import serverCore, { ObjectDDParticipant } from '@hcengineering/server-core'
export { serverCalendarId } from '@hcengineering/server-calendar'
export function createModel (builder: Builder): void {
builder.mixin(calendar.class.Event, core.class.Class, serverNotification.mixin.HTMLPresenter, {
presenter: serverCalendar.function.EventHTMLPresenter
})
builder.mixin(calendar.class.Event, core.class.Class, serverNotification.mixin.TextPresenter, {
presenter: serverCalendar.function.EventTextPresenter
})
builder.mixin<Class<Doc>, ObjectDDParticipant>(
core.class.Doc,
core.class.Class,