that should return a response

This commit is contained in:
Regalijan 2025-01-25 00:49:13 -05:00
parent 6cd50ac1b4
commit d5ad727e32
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -1,4 +1,4 @@
import { jsonError } from "../../common.js"; import { jsonError, jsonResponse } from "../../common.js";
import sendEmail from "../../email.js"; import sendEmail from "../../email.js";
import { sendPushNotification } from "../../gcloud.js"; import { sendPushNotification } from "../../gcloud.js";
@ -52,7 +52,7 @@ export async function onRequestGet(context: RequestContext) {
result.user = JSON.parse(result.user as string); result.user = JSON.parse(result.user as string);
return result; return jsonResponse(JSON.stringify(result));
} }
export async function onRequestPost(context: RequestContext) { export async function onRequestPost(context: RequestContext) {