server/src/Entity/customer.js
/**
    * Method to update the customer details.
    * @returns {Promise<unknown>}
    */
Method to update the customer details.
@returns {Promise}
Method to update the customer details . @returns { Promise }
updateCustomerDetails() {
      return new Promise((resolve, reject) => {
         database.runSp(constants.SP_UPDATE_CUSTOMER_DETAILS,
            [this._id, this._password, this._phone]).then(_resultSet => {
            resolve(_resultSet[0][0]);
         }).catch(err => {
            printer.printError(err);
            reject(err);
         });
      });
   }
updateCustomerDetails ( ) { return new Promise ( ( resolve , reject ) => { database . runSp ( constants . SP_UPDATE_CUSTOMER_DETAILS , [ this . _id , this . _password , this . _phone ] ) . then ( _resultSet => { resolve ( _resultSet [ 0 ] [ 0 ] ) ; } ) . catch ( err => { printer . printError ( err ) ; reject ( err ) ; } ) ; } ) ; }
Method to update the customer details.
Method to update the customer details .