@muze-nl/simplystore 0.6.28 → 0.6.29

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muze-nl/simplystore",
3
- "version": "0.6.28",
3
+ "version": "0.6.29",
4
4
  "main": "src/server.mjs",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -65,7 +65,9 @@ export async function initialize(task) {
65
65
  resultArr = dataspace[resultSet]
66
66
  meta = task.meta
67
67
  metaProxy.index.id = metaIdProxy
68
- metaProxy.schema = meta.schema
68
+ if (meta.schema) {
69
+ metaProxy.schema = meta.schema
70
+ }
69
71
  datafile = task.datafile
70
72
  commands = await import(task.commandsFile).then(mod => {
71
73
  return mod.default
package/src/server.mjs CHANGED
@@ -231,7 +231,7 @@ async function main(options) {
231
231
  status.set(command.id, s)
232
232
  if (data.data) { // data has changed, commands may do other things instead of changing data
233
233
  jsontagBuffers.push(data.data) // push changeset to jsontagBuffers so that new query workers get all changes from scratch
234
- meta = data.meta
234
+ Object.assign(meta, data.meta)
235
235
  queryWorkerPool.update({
236
236
  name: 'update',
237
237
  req: {