mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
v3 adapt v2: fix tasks creation
This commit is contained in:
parent
2f4f62f342
commit
020b7c5464
1 changed files with 2 additions and 2 deletions
|
|
@ -123,8 +123,8 @@ TaskSchema.methods.toJSONV2 = function toJSONV2 () {
|
|||
return toJSON;
|
||||
};
|
||||
|
||||
TaskSchema.statics.fromJSONV2 = function toJSONV2 (taskObj) {
|
||||
taskObj._id = taskObj.id;
|
||||
TaskSchema.statics.fromJSONV2 = function fromJSONV2 (taskObj) {
|
||||
if (taskObj.id) taskObj._id = taskObj.id;
|
||||
|
||||
let v2Tags = taskObj.tags || {};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue