From 092278a4b8335ec4c2a5285b7e82ca217a129877 Mon Sep 17 00:00:00 2001 From: Kelly Copley Date: Tue, 29 Jun 2021 16:23:20 -0400 Subject: [PATCH] use Metoer.server --- lib/server/context.js | 2 +- lib/server/fast_render.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/server/context.js b/lib/server/context.js index d75422c..ba7e8ab 100644 --- a/lib/server/context.js +++ b/lib/server/context.js @@ -40,7 +40,7 @@ export class Context { } subscribe (subName /*, params */) { - const publishHandler = Meteor.default_server.publish_handlers[subName]; + const publishHandler = Meteor.server.publish_handlers[subName]; if (publishHandler) { const params = Array.prototype.slice.call(arguments, 1); // non-universal subs have subscription id diff --git a/lib/server/fast_render.js b/lib/server/fast_render.js index fbd0e10..4c3ddf0 100644 --- a/lib/server/fast_render.js +++ b/lib/server/fast_render.js @@ -177,7 +177,7 @@ export const FastRender = { // adding support for null publications FastRender.onAllRoutes(function () { const context = this; - const nullHandlers = Meteor.default_server.universal_publish_handlers; + const nullHandlers = Meteor.server.universal_publish_handlers; if (nullHandlers) { nullHandlers.forEach(function (publishHandler) {