Skip to content

Commit

Permalink
fix(payload): roles
Browse files Browse the repository at this point in the history
  • Loading branch information
KeziahMoselle committed Apr 4, 2024
1 parent f667366 commit a20f6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/endpoints/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const register: PayloadHandler = async (req, res): Promise<void> => {
name: req.body.name,
email: req.body.email,
password: req.body.password,
role: 'user'
roles: ['user']
}
})

Expand Down

0 comments on commit a20f6f2

Please sign in to comment.