refactor(client): Only omit complex properties from task update object

This commit is contained in:
Blade Barringer
2016-09-20 08:00:13 -05:00
parent 190aa2c0e7
commit d5d27355da

View File

@@ -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',