Prechádzať zdrojové kódy

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

Lee Morgan 5 rokov pred
rodič
commit
659cd70aef
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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"],