(ctx)
| 172 | router: appRouter, |
| 173 | createContext, |
| 174 | onError(ctx) { |
| 175 | if (ctx.error.code === 'UNAUTHORIZED' && ctx.path === 'organization.list') { |
| 176 | return; |
| 177 | } |
| 178 | ctx.req.log.error( |
| 179 | { |
| 180 | err: ctx.error, |
| 181 | path: ctx.path, |
| 182 | input: ctx.input, |
| 183 | type: ctx.type, |
| 184 | session: ctx.ctx?.session, |
| 185 | }, |
| 186 | 'trpc error', |
| 187 | ); |
| 188 | }, |
| 189 | } satisfies FastifyTRPCPluginOptions<AppRouter>['trpcOptions'], |
| 190 | }); |
| 191 |