Fixes slack verification and timeout errors (#2972)
* Fixing slack create event * Fixes verify working 90% of the time :S * Verify V2 * Fixing verify - not needed on interaction payload * Fixing verifcation + response * Fix verifcation * DM user error/success * Remove random 200 * Timeout return * Adding Zod schema verification * Added validations, cleanup * Type fixes * Update event.ts Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: zomars <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
15 files changed
+167
-184
No files matched your search
@@ -237,7 +237,8 @@ async function handler(req: NextApiRequest) {
|
||||
throw new HttpError({ statusCode: 400, message: error.message });
|
||||
}
|
||||
|
||||
const eventType = !eventTypeId ? getDefaultEvent(eventTypeSlug) : await getEventTypesFromDB(eventTypeId);
|
||||
const eventType =
|
||||
!eventTypeId && !!eventTypeSlug ? getDefaultEvent(eventTypeSlug) : await getEventTypesFromDB(eventTypeId);
|
||||
if (!eventType) throw new HttpError({ statusCode: 404, message: "eventType.notFound" });
|
||||
|
||||
let users = !eventTypeId
|
||||
|
||||
Reference in new issue
Block a user