diff --git a/db/models/archivedGather.js b/db/models/archivedGather.js index 48100b0..d5feeac 100644 --- a/db/models/archivedGather.js +++ b/db/models/archivedGather.js @@ -19,8 +19,11 @@ archivedGatherSchema.static({ .exec(callback); }, archive: function (gather, callback) { + // Do not try to fix this + // failed attempts to fix this: 1 + let data = JSON.parse(JSON.stringify(gather.toJson())); this.create({ - gather: gather.toJson() + gather: data }, callback); } });