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

exist(...) never returning #123

Open
NineToeNerd opened this issue Dec 28, 2017 · 0 comments
Open

exist(...) never returning #123

NineToeNerd opened this issue Dec 28, 2017 · 0 comments

Comments

@NineToeNerd
Copy link

NineToeNerd commented Dec 28, 2017

console.log('Checking');
gfs.exist({ _id: fileId }, function (err, found) {
  console.log('Done checking');
});

The callback above is never reached (the line console.log('Done checking');). I tried fileId as a string and ObjectID.

The file is found successfully when I use:
gfs.findOne({ _id: fileId }, function (err, file) { ... });
so I'm using that for now, but I thought you might want to look into this.

NodeJS version: 9.1.0
NPM version: 5.5.0
gridfs-stream version: 1.1.1

@NineToeNerd NineToeNerd changed the title exist(...) never returning ( exist(...) never returning Dec 28, 2017
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

1 participant