summaryrefslogtreecommitdiff
path: root/u/server/activity/health.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <lizhunt@amazon.com>2025-05-16 16:17:13 -0700
committerElizabeth Hunt <lizhunt@amazon.com>2025-05-16 16:17:13 -0700
commitef51b25e4388cbdf3a27e23d9f1fa381ae20a5ad (patch)
treed54be88fa30fd2da97a97fc7006d9ff9d94ed16a /u/server/activity/health.ts
parent1ab20482ab37d7962c8e69701163270e687df3ca (diff)
downloadci-ef51b25e4388cbdf3a27e23d9f1fa381ae20a5ad.tar.gz
ci-ef51b25e4388cbdf3a27e23d9f1fa381ae20a5ad.zip
snapshot
Diffstat (limited to 'u/server/activity/health.ts')
-rw-r--r--u/server/activity/health.ts12
1 files changed, 8 insertions, 4 deletions
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 = <Trace>(
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" } },
);
});
}));