Browse Source

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

Lee Morgan 5 năm trước cách đây
mục cha
commit
659cd70aef
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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"],