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:
1 parent
b3fd4f307f
commit
0ab9823c9a
6 files changed
+23
No files matched your search
+4
@@ -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>>;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user