Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
that should return a response
  • Loading branch information
regalijan committed Jan 25, 2025
1 parent 6cd50ac commit d5ad727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/api/inactivity/[id].ts
@@ -1,4 +1,4 @@
import { jsonError } from "../../common.js";
import { jsonError, jsonResponse } from "../../common.js";
import sendEmail from "../../email.js";
import { sendPushNotification } from "../../gcloud.js";

Expand Down Expand Up @@ -52,7 +52,7 @@ export async function onRequestGet(context: RequestContext) {

result.user = JSON.parse(result.user as string);

return result;
return jsonResponse(JSON.stringify(result));
}

export async function onRequestPost(context: RequestContext) {
Expand Down

0 comments on commit d5ad727

Please sign in to comment.