mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
refactor(client): Only omit complex properties from task update object
This commit is contained in:
@@ -72,11 +72,7 @@ angular.module('habitrpg')
|
|||||||
};
|
};
|
||||||
|
|
||||||
function updateTask (taskId, taskDetails) {
|
function updateTask (taskId, taskDetails) {
|
||||||
var taskDetailsToSend = _.omit(
|
var taskDetailsToSend = _.omit(taskDetails, ['challenge', 'group', 'history', 'reminders', 'tags'])
|
||||||
taskDetails,
|
|
||||||
['challenge', 'completed', 'createdAt', 'group', 'history', 'id',
|
|
||||||
'reminders', 'tags', 'type', 'updatedAt', 'userId']
|
|
||||||
)
|
|
||||||
|
|
||||||
return $http({
|
return $http({
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
|
|||||||
Reference in New Issue
Block a user