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

Is Partitioner.directOperation still working ? #31

Open
minhnhatspk opened this issue May 17, 2018 · 1 comment
Open

Is Partitioner.directOperation still working ? #31

minhnhatspk opened this issue May 17, 2018 · 1 comment

Comments

@minhnhatspk
Copy link

minhnhatspk commented May 17, 2018

I'm using findOne to find a object that not in any group, but result is undefined although it's exist in DB.
My code:

Partitioner.directOperation(() => {
adminMigrationFunctions.forEach(async (item) => {
        const migrationStatus = MigrationStatuses.findOne({ name: item.name });
        console.log(migrationStatus); // undefined
  });
});

before that: I saved a MigrationStatuses to DB as the following code

MigrationStatuses.upsert({ name: item.name }, { $set: { done: true } });

Please help!

@anarayn
Copy link

anarayn commented Aug 9, 2018

Did you found the solution for this, I am also facing a similar problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants