Skip to content

Commit

Permalink
Fixes incorrect field access (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
pm3512 authored Feb 8, 2023
1 parent 951da1d commit 647b8e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/user/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ module.exports = function (User) {
if (data.email !== undefined) {
data.email = String(data.email).trim();
}
if (data.accounttype !== undefined) {
data.accounttype = data.accounttype.trim();
if (data['account-type'] !== undefined) {
data.accounttype = data['account-type'].trim();
}

await User.isDataValid(data);
Expand Down

0 comments on commit 647b8e6

Please sign in to comment.