No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

remoteConfig.js 592B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.ensureRemoteConfigTriggerRegion = void 0;
  4. const error_1 = require("../../../error");
  5. function ensureRemoteConfigTriggerRegion(endpoint) {
  6. if (!endpoint.eventTrigger.region) {
  7. endpoint.eventTrigger.region = "global";
  8. }
  9. if (endpoint.eventTrigger.region !== "global") {
  10. throw new error_1.FirebaseError("A remote config trigger must specify 'global' trigger location");
  11. }
  12. return Promise.resolve();
  13. }
  14. exports.ensureRemoteConfigTriggerRegion = ensureRemoteConfigTriggerRegion;