Await for auth before putting, inside gunprocess
This commit is contained in:
parent
dc78fa0371
commit
549f1ba4c4
1 changed files with 1 additions and 0 deletions
|
|
@ -191,6 +191,7 @@ const handleMsg = async msg => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (msg.type === 'put') {
|
if (msg.type === 'put') {
|
||||||
|
await waitForAuth()
|
||||||
const [root, ...keys] = msg.path.split('>')
|
const [root, ...keys] = msg.path.split('>')
|
||||||
|
|
||||||
/** @type {GunT.GUNNode} */
|
/** @type {GunT.GUNNode} */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue