chore: add createdAt field to SelectedCalendar and DestinationCalendar (#22071)

* Add createdAt

* Address feedback

* Make date fields nullable

* Type fixes

* Type fix

* Fix tests
This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2025-07-05 17:04:38 +01:00
1 parent b3fd4f307f
commit 0ab9823c9a
6 files changed
+23

No files matched your search

@@ -93,6 +93,8 @@ describe("POST /api/selected-calendars", () => {
watchAttempts: 0,
maxAttempts: 3,
unwatchAttempts: 0,
createdAt: new Date(),
updatedAt: new Date(),
});
await handler(req, res);
@@ -136,6 +138,8 @@ describe("POST /api/selected-calendars", () => {
watchAttempts: 0,
maxAttempts: 3,
unwatchAttempts: 0,
createdAt: new Date(),
updatedAt: new Date(),
});
await handler(req, res);
@@ -92,6 +92,8 @@ describe("Platform Destination Calendar Endpoints", () => {
publisher: "",
url: "",
email: "",
createdAt: new Date().toISOString(),
updatedAt: new Date().toISOString(),
},
// calendars: {
// externalId:
@@ -118,6 +120,8 @@ describe("Platform Destination Calendar Endpoints", () => {
id: 0,
delegationCredentialId: null,
domainWideDelegationCredentialId: null,
createdAt: new Date(),
updatedAt: new Date(),
},
})
);
@@ -75,6 +75,8 @@ export class CalendarsServiceMock {
id: 0,
delegationCredentialId: null,
domainWideDelegationCredentialId: null,
createdAt: new Date(),
updatedAt: new Date(),
},
} satisfies Awaited<ReturnType<typeof CalendarsService.prototype.getCalendars>>;
}