@cero-base/core 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/database/index.js +2 -0
package/package.json
CHANGED
package/src/database/index.js
CHANGED
|
@@ -338,6 +338,8 @@ export class Database extends ReadyResource {
|
|
|
338
338
|
}
|
|
339
339
|
this.guard()
|
|
340
340
|
if (!this.bee.writable) throw CeroError.NOT_WRITABLE('Database')
|
|
341
|
+
// writable flips inside the apply that admits us, before its view flush lands our device row
|
|
342
|
+
await this.bee.updated()
|
|
341
343
|
const encoded = ops.map(([op, payload]) =>
|
|
342
344
|
this.spec.dispatch.encode(`@${this.ns}/${op}`, payload)
|
|
343
345
|
)
|