returned object $promise attribute

angular $resource spec has changed I added missing attribute