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:
authored and GitHub committed 2022-11-23 18:36:31 -03:00
1 parent 33271a88b1
commit 1c2c6a62e6
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 }];
}