mirror of
https://github.com/cudr/slate-collaborative.git
synced 2024-10-27 20:34:06 +00:00
Missing query argument in nspMiddleware (#16)
Without this argument it's not possible to use query object with token and other items.
This commit is contained in:
parent
fa0465afbb
commit
e1494a70db
@ -67,7 +67,7 @@ export default class SocketIOCollaboration {
|
||||
|
||||
if (!this.backend.getDocument(path)) {
|
||||
const doc = onDocumentLoad
|
||||
? await onDocumentLoad(path)
|
||||
? await onDocumentLoad(path, query)
|
||||
: this.options.defaultValue
|
||||
|
||||
if (!doc) return next(null, false)
|
||||
|
Loading…
Reference in New Issue
Block a user