Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meteor collection hook direct not working #147

Open
Sergeant61 opened this issue Sep 21, 2022 · 0 comments
Open

Meteor collection hook direct not working #147

Sergeant61 opened this issue Sep 21, 2022 · 0 comments
Labels

Comments

@Sergeant61
Copy link

Hello, I'm going to talk about a bug we noticed. We use priority redis oplog and we don't have the problem when we don't use it. During the use of meteor-collection-hook with publishComposite, we enter the before hook in the collection queries we make with direct and our queries do not work correctly.

Example:

...
    children: [
      {
        find(session) {
          this.unblock();
          return Channels.direct.find({ _id: session.channelId });
        }
    ]
 ...

Normal publish works correctly:

Meteor.publish('name', function () {
  return Channels.direct.find({  _id: session.channelId })
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants