Skip to content

Commit

Permalink
fix: add ssr only warning to xlsx trpc procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
EETagent committed Feb 25, 2024
1 parent 9e05acf commit 9d15d35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/trpc/server/routes/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ export const users = t.router({
trpcInfo(ctx, `Created user ${input.username}`);
}),
csv: t.procedure.use(adminAuth).query(async () => exportCsv()),
/**
* @description Export users to xlsx, Only SSR
* @returns ArrayBuffer
*/
xlsx: t.procedure.use(adminAuth).query(async () => exportXlsx()),
resetPassword: t.procedure
.use(adminAuth)
Expand Down

0 comments on commit 9d15d35

Please sign in to comment.