Guest User

Untitled

a guest
Feb 15th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. updateProfile: function (param) {
  2. stringQuery =
  3. "UPDATE `mst_customer` SET `full_name` = ?,`phone_1` = ?,`phone_2` = ?,`email` = ?,`facebook` = ?, ";
  4. stringQuery +=
  5. "`twitter` = ?,`instagram` = ?,`google` = ?,`line` = ?,`birth_date` = ?,`birth_place` = ?,`photo_url` = ?,`uid` = ?,`modified_date` = NOW(), `sex` = ? WHERE `id` = ?;";
  6.  
  7. return db.query(stringQuery, [
  8. param.displayName,
  9. param.phoneNumber,
  10. param.phone2,
  11. param.email,
  12. param.facebook,
  13. param.twitter,
  14. param.instagram,
  15. param.google,
  16. param.line,
  17. param.birthDate,
  18. param.birthPlace,
  19. param.photoURL,
  20. param.uid,
  21. param.sex,
  22. param.customerId
  23. ]);
  24. },
Add Comment
Please, Sign In to add comment