Skip to content

Method allowCreate never executed? #11

@adelriosantiago

Description

@adelriosantiago

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions