Skip to content

Commit

Permalink
use Metoer.server
Browse files Browse the repository at this point in the history
  • Loading branch information
copleykj committed Jun 29, 2021
1 parent ce23b44 commit 092278a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/server/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/server/fast_render.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 092278a

Please sign in to comment.