Explorar el Código

Set owner name to merchant name when non-pos creates an account.

Lee Morgan hace 5 años
padre
commit
659cd70aef
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      controllers/merchantData.js

+ 1 - 0
controllers/merchantData.js

@@ -90,6 +90,7 @@ module.exports = {
 
         let owner = new Owner({
             email: email,
+            name: req.body.name,
             password: hash,
             createdAt: new Date(),
             status: ["unverified"],