Fixes on messaging and calendar (#7485)

Fix syncedAt no longer been set on message sync.
Fix calendar data model:
- Add `syncedAt` to `CalendarChannelWorkspaceEntity`
- Move `recurringEventExternalId` from `CalendarEventWorkspaceEntity` to
`CalendarChannelEventAssociationWorkspaceEntity` since the id is
relative to one channel
Fix save queries on calendar sync after regression.
This commit is contained in:
Raphaël Bosi
2024-10-08 13:44:16 +02:00
committed by GitHub
parent 66ec70f776
commit e042711f34
11 changed files with 83 additions and 50 deletions

View File

@ -14,6 +14,7 @@ export const seedCalendarChannelEventAssociations = async (
'calendarChannelId',
'calendarEventId',
'eventExternalId',
'recurringEventExternalId',
])
.orIgnore()
.values([
@ -22,6 +23,7 @@ export const seedCalendarChannelEventAssociations = async (
calendarChannelId: '59efdefe-a40f-4faf-bb9f-c6f9945b8203',
calendarEventId: '86083141-1c0e-494c-a1b6-85b1c6fefaa5',
eventExternalId: 'exampleExternalId',
recurringEventExternalId: 'exampleRecurringExternalId',
},
])
.execute();

View File

@ -24,7 +24,6 @@ export const seedCalendarEvents = async (
'conferenceSolution',
'conferenceLinkPrimaryLinkLabel',
'conferenceLinkPrimaryLinkUrl',
'recurringEventExternalId',
])
.orIgnore()
.values([
@ -43,7 +42,6 @@ export const seedCalendarEvents = async (
conferenceSolution: 'Zoom',
conferenceLinkPrimaryLinkLabel: 'https://zoom.us/j/1234567890',
conferenceLinkPrimaryLinkUrl: 'https://zoom.us/j/1234567890',
recurringEventExternalId: 'recurring1',
},
])
.execute();