UNPKG

@a11ywatch/core

Version:
10 lines 706 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.lighthouseResult = void 0; const graphql_subscriptions_1 = require("graphql-subscriptions"); const static_1 = require("../../static"); const pubsub_1 = require("../../../database/pubsub"); exports.lighthouseResult = { subscribe: (0, graphql_subscriptions_1.withFilter)(() => pubsub_1.pubsub.asyncIterator(static_1.LIGHTHOUSE), (payload, _, context) => { var _a; return ((_a = payload === null || payload === void 0 ? void 0 : payload.lighthouseResult) === null || _a === void 0 ? void 0 : _a.userId) === (context === null || context === void 0 ? void 0 : context.userId); }), }; //# sourceMappingURL=lighthouse.js.map