refactor(SW-898): replace signup server action with TRPC

This commit is contained in:
Chuma McPhoy
2024-11-15 08:30:52 +01:00
parent c309619cdc
commit 6958db3ca5
6 changed files with 116 additions and 111 deletions

View File

@@ -121,7 +121,7 @@ export const safeProtectedProcedure = t.procedure.use(async function (opts) {
})
})
export const serviceProcedure = t.procedure.use(async (opts) => {
export const serviceProcedure = t.procedure.use(async function (opts) {
const { access_token } = await getServiceToken()
if (!access_token) {
throw internalServerError(`[serviceProcedure] No service token`)