Skip to content

Commit

Permalink
fix: error resolver args call
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Aug 5, 2024
1 parent 4ba47c5 commit 0e27fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/server/api/auth/register.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default defineEventHandler(async (event) => {
const config = useRuntimeConfig(event)

if (['false', '0'].includes(config.authAllowRegistration)) {
throw errorResolver(null, ERROR_REGISTRATION_DISABLED)
throw errorResolver({}, ERROR_REGISTRATION_DISABLED)
}

try {
Expand Down

0 comments on commit 0e27fe0

Please sign in to comment.