mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-10 15:21:56 +00:00
Hack to save complex gather instance
This commit is contained in:
parent
7f347e26cd
commit
d75dbf9982
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue