(input: { userId: string })
| 220 | } |
| 221 | |
| 222 | export 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 | } |