From 4250d68c54a5f73a54e9f206d81fc20f20260cc5 Mon Sep 17 00:00:00 2001 From: James Prevett Date: Sat, 5 Oct 2024 11:50:01 -0500 Subject: [PATCH] Update requires protected access --- functions/account/update.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functions/account/update.ts b/functions/account/update.ts index 6113911..4f991da 100644 --- a/functions/account/update.ts +++ b/functions/account/update.ts @@ -3,6 +3,7 @@ import { AccountType, accountAttributes, stripAccountInfo, type FullAccount } fr import { setAccountAttribute, setDB } from '../../src/backend/api'; import type { RequestContext } from '../../src/backend/context'; import { checkAuth, checkBody, error, getAccountFromTokenOrID, parseError, response } from '../../src/backend/utils'; +import { Access } from '../../src/generic'; export { onRequestOptions } from '../../src/backend/utils'; @@ -32,6 +33,7 @@ export async function onRequest({ env, request }: RequestContext): Promise