function acUpdateAccount(pack) {

  
  const updateAccount = (pack) => {
    return EC.updateAccount (pack.accountId , pack.uid , pack.active) 
      .then(pr => { return { ...pack, result: pr, success: pr.data && pr.data.ok } })};
      
  const uid = getCurrentUid();
  
  return uid ? 
    efPattern(cs.actions.UPDATE_ACCOUNT, {
      uid:uid,
      pageResults:"accounts",
      active:pack.ob.active ? 1 : 0,
      accountId:pack.accountId
    }, updateAccount) : 
    null;
  

}
/**
 * update the user accounts on firebase
 */
update the user accounts on firebase
update the user accounts on firebase
function acUpdateAccount(pack) {
  const updateAccount = (pack) => {
    return EC.updateAccount (pack.accountId , pack.uid , pack.active) 
      .then(pr => { return { ...pack, result: pr, success: pr.data && pr.data.ok } })};
  const uid = getCurrentUid();
  return uid ? 
    efPattern(cs.actions.UPDATE_ACCOUNT, {
      uid:uid,
      pageResults:"accounts",
      active:pack.ob.active ? 1 : 0,
      accountId:pack.accountId
    }, updateAccount) : 
    null;
}
function acUpdateAccount ( pack ) { const updateAccount = ( pack ) => { return EC . updateAccount ( pack . accountId , pack . uid , pack . active ) . then ( pr => { return { ... pack , result : pr , success : pr . data && pr . data . ok } } ) } ; const uid = getCurrentUid ( ) ; return uid ? efPattern ( cs . actions . UPDATE_ACCOUNT , { uid : uid , pageResults : "accounts" , active : pack . ob . active ? 1 : 0 , accountId : pack . accountId } , updateAccount ) : null ; }
update the user accounts on firebase
update the user accounts on firebase