Skip to content

Commit 0080bca

Browse files
Moumoulsdblythy
andauthored
Update src/Controllers/DatabaseController.js
Co-authored-by: dblythy <[email protected]>
1 parent d6bd27f commit 0080bca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Controllers/DatabaseController.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ const maybeTransformUsernameAndEmailToLowerCase = (object, className, options) =
365365
if (className === '_User' && options.forceEmailAndUsernameToLowerCase) {
366366
const toLowerCaseFields = ['email', 'username'];
367367
toLowerCaseFields.forEach(key => {
368-
if (typeof object[key] === 'string') object[key] = object[key].toLowerCase();
368+
if (typeof object[key] === 'string') {
369+
object[key] = object[key].toLowerCase();
370+
}
369371
});
370372
}
371373
};

0 commit comments

Comments
 (0)