Make status creation API more permissive

This commit is contained in:
Jesse Wierzbinski 2024-04-14 03:01:56 -10:00
parent 4cee92f22d
commit 325ecbfc53
No known key found for this signature in database
3 changed files with 3 additions and 7 deletions

View file

@ -98,8 +98,6 @@ export class RequestParser {
const formData = await this.request.formData();
const result: Partial<T> = {};
console.log([...formData.entries()]);
for (const [key, value] of formData.entries()) {
if (value instanceof Blob) {
result[key as keyof T] = value as T[keyof T];

View file

@ -133,8 +133,6 @@ export const processRoute = async (
return null;
});
console.log(parsedRequest);
if (!parsedRequest) {
return errorResponse(
"The request could not be parsed, it may be malformed",