diff --git a/routes.ts b/routes.ts index 90ba45f..4302ade 100644 --- a/routes.ts +++ b/routes.ts @@ -11,8 +11,6 @@ export function getImages(req: Request): Promise { const imageList = await query_getImages.all(); - console.log("imageList:", imageList); - const response = Response.json({ images: imageList }); resolve(response); }); @@ -28,7 +26,7 @@ export function getImage(req: Request): Promise { if (!image) { const ErrorResponse = new Response("No Images Found", { status: 404 }); - reject(ErrorResponse); + resolve(ErrorResponse); } // Send image as response