Hack to save complex gather instance

This commit is contained in:
Chris Blanchard 2015-09-26 17:02:32 +01:00
parent 7f347e26cd
commit d75dbf9982

View file

@ -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);
}
});