Fix/event type clone (#5659)
* fix: add location query variable * chore: remove logs * fix: remove required location * fix: make locations option * fix: get location * Update packages/prisma/zod/custom/eventtype.ts * Fix location being overrided by default Co-authored-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>
This commit is contained in:
1 file changed
+2
-1
@@ -360,7 +360,8 @@ export const eventTypesRouter = router({
|
||||
};
|
||||
|
||||
const appKeys = await getAppKeysFromSlug("daily-video");
|
||||
if (typeof appKeys.api_key === "string") {
|
||||
// Shouldn't override input locations
|
||||
if (rest.locations?.length === 0 && typeof appKeys.api_key === "string") {
|
||||
data.locations = [{ type: DailyLocationType }];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user