Parcourir la source

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

Lee Morgan il y a 5 ans
Parent
commit
659cd70aef
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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"],