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

Method allowCreate never executed? #11

Open
adelriosantiago opened this issue Mar 28, 2019 · 0 comments
Open

Method allowCreate never executed? #11

adelriosantiago opened this issue Mar 28, 2019 · 0 comments

Comments

@adelriosantiago
Copy link

I am running,

"sharedb": "^1.0.0-beta",
"sharedb-access": "^5.0.0",

With,

$ node --version
v10.13.0

And when running,

shareDbAccess(backend);
backend.allowCreate('default', async (docId, doc, session) => {
  console.log('docId, doc, session:', docId, doc, session);
  return false;
})

The console.log never executes and I'm allowed to create the 'default' document even when the function returns false.

All other mehods, allowRead and allowUpdate are working perfectly.

Any ideas why this happens? What I'm doing wrong?

Thanks!

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