From 96587f3a4207638735801dbd31e83d7b43d98864 Mon Sep 17 00:00:00 2001 From: Caleb Braaten Date: Thu, 4 Apr 2024 13:59:27 -0700 Subject: [PATCH] Remove console.log debugging --- routes.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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