score:0

const getAddressLabel = async (vp_userid) => {
  let vo_obj;
  let va_addresses = [];

  const snapAddress = await firebase
    .database()
    .ref("address/" + vp_userid)
    .orderByKey()
    .once("value");

  vo_obj = {
    label: snapAddress.val().addresslabel,
    value: snapAddress.val().addresslabel,
  };

  va_addresses.push(vo_obj);

  return va_addresses;
};


Related Query

More Query from same tag