Exception from sub pendingReview id CCtvre3cA73bFozdb TypeError: Cannot read property 'options' of undefined
at Object.Counts.publish (packages/tmeasday:publish-counts/publish-counts.js:42:1)
at [object Object]._handler (app/server/publications.js:51:16)
at maybeAuditArgumentChecks (packages/ddp/livedata_server.js:1617:1)
at [object Object]._.extend._runHandler (packages/ddp/livedata_server.js:950:1)
at [object Object]._.extend._startSubscription (packages/ddp/livedata_server.js:769:1)
at [object Object]._.extend.protocol_handlers.sub (packages/ddp/livedata_server.js:582:1)
at packages/ddp/livedata_server.js:546:1
A local collection is defined as new Mongo.Collection(null) (see Meteor Docs).
Apparently local collections don't define a _cursorDescription property on their cursors.
Suggested fix: skip field specifier optimization if _cursorDescription is undefined.
In #35, @jjman505 writes:
A local collection is defined as
new Mongo.Collection(null)
(see Meteor Docs).Apparently local collections don't define a
_cursorDescription
property on their cursors.Suggested fix: skip field specifier optimization if
_cursorDescription
is undefined.PR to follow after consensus.
CC @tmeasday, @dburles