@@ -270,7 +270,7 @@ module.exports = (sequelize, DataTypes) => {
270270 static getRegisterError ( bodyInput ) {
271271 if ( undefined === bodyInput . firstName ) {
272272 return "The first name field is missing." ;
273- } else if ( typeof bodyInput . firstName !== "string" ) {
273+ } else if ( "string" !== typeof bodyInput . firstName ) {
274274 return "The first name field must be of type string" ;
275275 } else if ( 20 < bodyInput . firstName . trim ( ) . length ) {
276276 return "The first name field length must not exceed 20 characters." ;
@@ -280,7 +280,7 @@ module.exports = (sequelize, DataTypes) => {
280280
281281 if ( undefined === bodyInput . lastName ) {
282282 return "The last name field is missing." ;
283- } else if ( typeof bodyInput . lastName !== "string" ) {
283+ } else if ( "string" !== typeof bodyInput . lastName ) {
284284 return "The last name field must be of type string" ;
285285 } else if ( 20 < bodyInput . lastName . trim ( ) . length ) {
286286 return "The last name field length must not exceed 20 characters." ;
@@ -290,7 +290,7 @@ module.exports = (sequelize, DataTypes) => {
290290
291291 if ( undefined === bodyInput . email ) {
292292 return "The email field is missing." ;
293- } else if ( typeof bodyInput . email !== "string" ) {
293+ } else if ( "string" !== typeof bodyInput . email ) {
294294 return "The email field must be of type string" ;
295295 } else if ( 30 < bodyInput . email . length ) {
296296 return "The email field length must not exceed 30 characters." ;
@@ -300,7 +300,7 @@ module.exports = (sequelize, DataTypes) => {
300300
301301 if ( undefined === bodyInput . password ) {
302302 return "The password field is missing." ;
303- } else if ( typeof bodyInput . password !== "string" ) {
303+ } else if ( "string" !== typeof bodyInput . password ) {
304304 return "The password field must be of type string" ;
305305 } else if ( 20 < bodyInput . password . length ) {
306306 return "The password field length must not exceed 20 characters." ;
@@ -506,7 +506,7 @@ module.exports = (sequelize, DataTypes) => {
506506 static getLoginError ( bodyInput ) {
507507 if ( undefined === bodyInput . email ) {
508508 return "The email field is missing." ;
509- } else if ( typeof bodyInput . email !== "string" ) {
509+ } else if ( "string" !== typeof bodyInput . email ) {
510510 return "The email field must be of type string" ;
511511 } else if ( 30 < bodyInput . email . length ) {
512512 return "The email field length must not exceed 30 characters." ;
@@ -516,7 +516,7 @@ module.exports = (sequelize, DataTypes) => {
516516
517517 if ( undefined === bodyInput . password ) {
518518 return "The password field is missing." ;
519- } else if ( typeof bodyInput . password !== "string" ) {
519+ } else if ( "string" !== typeof bodyInput . password ) {
520520 return "The password field must be of type string" ;
521521 } else if ( 20 < bodyInput . password . length ) {
522522 return "The password field length must not exceed 20 characters." ;
0 commit comments