Scheduling infrastructure for absolutely everyone.
refactor: update `microsoft` platform slug to `office365` for consistency (#23179)
Somay Chauhan4a23832388f4
diff --git a/packages/lib/delegationCredential/server.test.ts b/packages/lib/delegationCredential/server.test.tsindex 4a24df6f4ca..b495cecf27f 100644--- a/packages/lib/delegationCredential/server.test.ts+++ b/packages/lib/delegationCredential/server.test.ts@@ -213,21 +213,6 @@ describe("getAllDelegationCredentialsForUserIncludeServiceAccountKey", () => {buildDelegationCredentialGoogleMeetCredential(),]);});-- it("should return empty array for non-Google platforms(as they are not supported yet)", async () => {- vi.mocked(- DelegationCredentialRepository.findUniqueByOrgMemberEmailIncludeSensitiveServiceAccountKey- ).mockResolvedValue(- buildMockDelegationCredential({- workspacePlatform: {- name: "Microsoft",- slug: "microsoft",- },- })- );- const result = await getAllDelegationCredentialsForUserIncludeServiceAccountKey({ user: mockUser });- expect(result).toEqual([]);- });});describe("buildAllCredentials", () => {diff --git a/packages/trpc/server/routers/viewer/delegationCredential/toggleEnabled.handler.ts b/packages/trpc/server/routers/viewer/delegationCredential/toggleEnabled.handler.tsindex f83a3f4b918..5b0e6326797 100644--- a/packages/trpc/server/routers/viewer/delegationCredential/toggleEnabled.handler.ts+++ b/packages/trpc/server/routers/viewer/delegationCredential/toggleEnabled.handler.ts@@ -80,7 +80,7 @@ export async function toggleDelegationCredentialEnabled(if (slug === "google") {calendarAppName = "Google Calendar";conferencingAppName = "Google Meet";- } else if (slug === "microsoft") {+ } else if (slug === "office365") {calendarAppName = "Microsoft 365";conferencingAppName = "Microsoft Teams";} else {