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.

firebaseAlerts.js 602B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.ensureFirebaseAlertsTriggerRegion = void 0;
  4. const error_1 = require("../../../error");
  5. function ensureFirebaseAlertsTriggerRegion(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 firebase alerts trigger must specify 'global' trigger location");
  11. }
  12. return Promise.resolve();
  13. }
  14. exports.ensureFirebaseAlertsTriggerRegion = ensureFirebaseAlertsTriggerRegion;