Fix/office365 api call (#3534)
* WIP fixes for handling office365 api call * First working version microsoft api call handling * Remove logs * Clean up and improve function names * Clean up * Remove log * Fix function missing its correct name * Fix direct return of statement * Cleanup * Simplify with private fetcher * Update CalendarService.ts * Update getOfficeAppKeys.ts Co-authored-by: zomars <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
9 files changed
+271
-109
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { Prisma } from "@prisma/client";
|
||||
import type { Prisma } from "@prisma/client";
|
||||
|
||||
import prisma from "@calcom/prisma";
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
import type Zod from "zod";
|
||||
|
||||
import getAppKeysFromSlug from "./getAppKeysFromSlug";
|
||||
|
||||
export async function getParsedAppKeysFromSlug(slug: string, schema: Zod.Schema) {
|
||||
const appKeys = await getAppKeysFromSlug(slug);
|
||||
return schema.parse(appKeys);
|
||||
}
|
||||
|
||||
export default getParsedAppKeysFromSlug;
|
||||
Reference in new issue
Block a user