async function sendMetaDataToServer()

in src/js/relay.firefox.com/get_profile_data.js [229:242]


    async function sendMetaDataToServer(aliases) {
      for (const alias of aliases) {
        const body = {
          description: alias.description ?? "",
          generated_for: alias.generated_for ?? "",
          used_on: alias.used_on ?? "",
        };

        if (body.description.length > 0 || body.generated_for.length > 0 || body.used_on.length > 0) {
          const endpoint = alias.mask_type === "custom" ? relayApiUrlDomainAddresses : relayApiUrlRelayAddresses;
          await apiRequest(`${endpoint}${alias.id}/`, "PATCH", JSON.stringify(body), {auth: true});
        }
      }
    }