@a11ywatch/core
Version:
a11ywatch central API
10 lines • 700 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.websiteAdded = void 0;
const graphql_subscriptions_1 = require("graphql-subscriptions");
const static_1 = require("../../static");
const pubsub_1 = require("../../../database/pubsub");
exports.websiteAdded = {
subscribe: (0, graphql_subscriptions_1.withFilter)(() => pubsub_1.pubsub.asyncIterator(static_1.WEBSITE_ADDED), (payload, _, context) => { var _a; return ((_a = payload === null || payload === void 0 ? void 0 : payload.websiteAdded) === null || _a === void 0 ? void 0 : _a.userId) === (context === null || context === void 0 ? void 0 : context.userId); }),
};
//# sourceMappingURL=website-added.js.map
;