From ef51b25e4388cbdf3a27e23d9f1fa381ae20a5ad Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Fri, 16 May 2025 16:17:13 -0700 Subject: snapshot --- u/server/activity/health.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'u/server/activity/health.ts') diff --git a/u/server/activity/health.ts b/u/server/activity/health.ts index 7ee6629..98acbb8 100644 --- a/u/server/activity/health.ts +++ b/u/server/activity/health.ts @@ -27,15 +27,19 @@ export const HealthCheckActivity = ( health.mapBoth((e) => { trace.addTrace(LogLevel.ERROR).trace(`${e}`); return new Response( - "oh no, i need to eat more vegetables (。•́︿•̀。)...\n", - { status: 500 }, + JSON.stringify({ + message: "oh no, i need to eat more vegetables (。•́︿•̀。)...", + }), + { status: 500, headers: { "Content-Type": "application/json" } }, ); }, (_healthy) => { const msg = `think im healthy!! (✿˘◡˘) ready to do work~`; trace.trace(msg); return new Response( - msg + "\n", - { status: 200 }, + JSON.stringify({ + message: "oh no, i need to eat more vegetables (。•́︿•̀。)...", + }), + { status: 500, headers: { "Content-Type": "application/json" } }, ); }); })); -- cgit v1.2.3-70-g09d2