MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / assertNonDemoAccount

Function assertNonDemoAccount

apps/app-server/src/utils/users.ts:222–229  ·  view source on GitHub ↗
(input: { userId: string })

Source from the content-addressed store, hash-verified

220}
221
222export async function assertNonDemoAccount(input: { userId: string }) {
223 if (await dataAbstraction().hget('user', input.userId, 'demo')) {
224 throw new TRPCError({
225 code: 'FORBIDDEN',
226 message: 'This action is unavailable for demo accounts.',
227 });
228 }
229}

Callers

nothing calls this directly

Calls 1

hgetMethod · 0.45

Tested by

no test coverage detected