We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 951da1d commit 647b8e6Copy full SHA for 647b8e6
src/user/create.js
@@ -18,8 +18,8 @@ module.exports = function (User) {
18
if (data.email !== undefined) {
19
data.email = String(data.email).trim();
20
}
21
- if (data.accounttype !== undefined) {
22
- data.accounttype = data.accounttype.trim();
+ if (data['account-type'] !== undefined) {
+ data.accounttype = data['account-type'].trim();
23
24
25
await User.isDataValid(data);
0 commit comments