Fix/wipe vital app revision (#2983)

* Fixes for both apps regarding event update/delete

* Added wipe my cal test

* Added eslint ignore

* Fix test

* Merge both test into a single test

* remove duplicated line

* Using prisma from calcom pkg and removing optional chaining from current invocations

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2022-06-10 19:16:10 +00:00
1 parent 22d2bae46b
commit 0df0b6a0f2
8 files changed
+88 -40

No files matched your search

@@ -61,7 +61,7 @@ const handler = async (
if (session?.user?.id) {
userOwner = await findUserDataByUserId(session?.user.id);
} else {
return res.status(501);
return res.status(501).end();
}
const bookingToReschedule = await prisma.booking.findFirst({
@@ -235,10 +235,10 @@ function validate(
if (error instanceof ZodError && error?.name === "ZodError") {
return res.status(400).json(error?.issues);
}
return res.status(402);
return res.status(402).end();
}
} else {
return res.status(405);
return res.status(405).end();
}
await handler(req, res);
};