Skip to content

Commit

Permalink
fixed disappearing meta.schema
Browse files Browse the repository at this point in the history
  • Loading branch information
poef committed Nov 14, 2024
1 parent b904aae commit c0531f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/command-worker-module.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export async function initialize(task) {
resultArr = dataspace[resultSet]
meta = task.meta
metaProxy.index.id = metaIdProxy
metaProxy.schema = meta.schema
if (meta.schema) {
metaProxy.schema = meta.schema
}
datafile = task.datafile
commands = await import(task.commandsFile).then(mod => {
return mod.default
Expand Down
2 changes: 1 addition & 1 deletion src/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ async function main(options) {
status.set(command.id, s)
if (data.data) { // data has changed, commands may do other things instead of changing data
jsontagBuffers.push(data.data) // push changeset to jsontagBuffers so that new query workers get all changes from scratch
meta = data.meta
Object.assign(meta, data.meta)
queryWorkerPool.update({
name: 'update',
req: {
Expand Down

0 comments on commit c0531f0

Please sign in to comment.