From e9b1c0467af88d0e6f2f53f47cc35b839fc292e4 Mon Sep 17 00:00:00 2001 From: hacklego Date: Mon, 27 Feb 2017 00:03:54 +0100 Subject: [PATCH] Syntax fix --- src/main/webapp/js/dao/pets.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/js/dao/pets.js b/src/main/webapp/js/dao/pets.js index 72c3d2b..f5670da 100644 --- a/src/main/webapp/js/dao/pets.js +++ b/src/main/webapp/js/dao/pets.js @@ -19,9 +19,9 @@ var PetsDAO = (function() { }, done, fail, always); }; - this.listPeoplePets = function(id, done, fail, always) { + this.listPeoplePets = function(person, done, fail, always) { requestByAjax({ - url: "rest/people/" + id + "/pets/", + url: "rest/people/" + person.id + "/pets/", type: 'GET' }, done, fail, always) }; @@ -50,5 +50,5 @@ var PetsDAO = (function() { }; } - return PetDAO; + return PetsDAO; })(); \ No newline at end of file -- 2.18.1