api/processing: slightly reformat code related to zod

This commit is contained in:
wukko
2024-08-08 23:43:04 +06:00
parent 66d70ffc44
commit e727e3a95b
2 changed files with 6 additions and 4 deletions

View File

@@ -72,7 +72,9 @@ export function createResponse(responseType, responseData) {
}
export function normalizeRequest(request) {
return apiSchema.safeParseAsync(request).catch(() => ({ success: false }));
return apiSchema.safeParseAsync(request).catch(() => (
{ success: false }
));
}
export function getIP(req) {