that should return a response
This commit is contained in:
parent
6cd50ac1b4
commit
d5ad727e32
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user