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) {
|
||||
var taskDetailsToSend = _.omit(
|
||||
taskDetails,
|
||||
['challenge', 'completed', 'createdAt', 'group', 'history', 'id',
|
||||
'reminders', 'tags', 'type', 'updatedAt', 'userId']
|
||||
)
|
||||
var taskDetailsToSend = _.omit(taskDetails, ['challenge', 'group', 'history', 'reminders', 'tags'])
|
||||
|
||||
return $http({
|
||||
method: 'PUT',
|
||||
|
||||
Reference in New Issue
Block a user