mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
make sure task._id == task.id (we should put this in pre(save) or something)
This commit is contained in:
parent
57116d949a
commit
0638888e4b
1 changed files with 1 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ function deleteTask(user, task) {
|
||||||
|
|
||||||
function addTask(user, task) {
|
function addTask(user, task) {
|
||||||
task = helpers.taskDefaults(task);
|
task = helpers.taskDefaults(task);
|
||||||
|
task._id = task.id;
|
||||||
user[task.type+'s'].unshift(task);
|
user[task.type+'s'].unshift(task);
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue