async function updateAccountByUserId(userId, partial) {
  try {
    if (typeof userId !== "string")
      throw new Error(`userId - ${userId} is not a string`);

    log.info({ partial, userId }, "To exec updateAccountByUserId");
    const [number] = await Accounts.update(partial, {
      where: {
        User_id: userId
      }
    });
    log.info({ partial, userId, number }, "Has exec updateAccountByUserId");
    return Promise.resolve(number);
  } catch (err) {
    throw new Error(`Error occurs in updateAccountByUserId: ${err.message}`);
  }
}
/** updateAccountByUserId update account by userId with partial of account properties
 * @param userId: String
 * @param partial: Account
 * @return Promise<[number]>
 */
updateAccountByUserId update account by userId with partial of account properties
@param userId: String
@param partial: Account
@return Promise<[number]>
updateAccountByUserId update account by userId with partial of account properties @param userId : String @param partial : Account @return Promise< [ number ] >
async function updateAccountByUserId(userId, partial) {
  try {
    if (typeof userId !== "string")
      throw new Error(`userId - ${userId} is not a string`);
    log.info({ partial, userId }, "To exec updateAccountByUserId");
    const [number] = await Accounts.update(partial, {
      where: {
        User_id: userId
      }
    });
    log.info({ partial, userId, number }, "Has exec updateAccountByUserId");
    return Promise.resolve(number);
  } catch (err) {
    throw new Error(`Error occurs in updateAccountByUserId: ${err.message}`);
  }
}
async function updateAccountByUserId ( userId , partial ) { try { if ( typeof userId !== "string" ) throw new Error ( ` ${ userId } ` ) ; log . info ( { partial , userId } , "To exec updateAccountByUserId" ) ; const [ number ] = await Accounts . update ( partial , { where : { User_id : userId } } ) ; log . info ( { partial , userId , number } , "Has exec updateAccountByUserId" ) ; return Promise . resolve ( number ) ; } catch ( err ) { throw new Error ( ` ${ err . message } ` ) ; } }
updateAccountByUserId update account by userId with partial of account properties
 @param userId: String
 @param partial: Account
 @return Promise<[number]>
updateAccountByUserId update account by userId with partial of account properties @param userId : String @param partial : Account @return Promise< [ number ] >