Browse Source

fix: return data parameter in R.error response helper

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
feat/registration-page
npmrun 2 weeks ago
parent
commit
5f95f33d6b
  1. 2
      server/utils/response.ts

2
server/utils/response.ts

@ -11,7 +11,7 @@ export const R = {
return {
code: 1,
message: message,
data: null,
data: data,
} as const
},
throwError: <T>(code: number, message: string, data: T) => {

Loading…
Cancel
Save