Implemented archive upload handling

This commit is contained in:
Stefan Zermatten
2022-06-07 23:01:06 +02:00
parent 385ac17812
commit 28934baac9
13 changed files with 139 additions and 196 deletions

View File

@@ -3,7 +3,7 @@ import { EJSON } from 'meteor/ejson';
export default function writeScope(creatureId, computation) {
const scope = computation.scope;
const variables = computation.creature.variables || {};
const variables = computation.creature?.variables || {};
let $set;
for (const key in scope){
// Remove large properties that aren't likely to be accessed