Commit e9b1c046 authored by Iago Gómez Salgado's avatar Iago Gómez Salgado

Syntax fix

parent 0fec1cc5
...@@ -19,9 +19,9 @@ var PetsDAO = (function() { ...@@ -19,9 +19,9 @@ var PetsDAO = (function() {
}, done, fail, always); }, done, fail, always);
}; };
this.listPeoplePets = function(id, done, fail, always) { this.listPeoplePets = function(person, done, fail, always) {
requestByAjax({ requestByAjax({
url: "rest/people/" + id + "/pets/", url: "rest/people/" + person.id + "/pets/",
type: 'GET' type: 'GET'
}, done, fail, always) }, done, fail, always)
}; };
...@@ -50,5 +50,5 @@ var PetsDAO = (function() { ...@@ -50,5 +50,5 @@ var PetsDAO = (function() {
}; };
} }
return PetDAO; return PetsDAO;
})(); })();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment