From 2c026cecb48c2a9cd12f7ed9b326c1bc3e82f098 Mon Sep 17 00:00:00 2001 From: Michael Hackstein Date: Mon, 15 Dec 2014 11:57:24 +0100 Subject: [PATCH] Fixed a forgotten todo variable name --- js/apps/system/aardvark/templates/controller.js.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/apps/system/aardvark/templates/controller.js.tmpl b/js/apps/system/aardvark/templates/controller.js.tmpl index 8d701d0a5d..263d9056a2 100644 --- a/js/apps/system/aardvark/templates/controller.js.tmpl +++ b/js/apps/system/aardvark/templates/controller.js.tmpl @@ -31,7 +31,7 @@ */ controller.post('/<%= basePath %>', function (req, res) { var <%= modelInstance %> = req.params('<%= modelInstance %>'); - res.json(<%= repositoryInstance %>.save(todo).forClient()); + res.json(<%= repositoryInstance %>.save(<%= modelInstance %>).forClient()); }).bodyParam('<%= modelInstance %>', 'The <%= model %> you want to create', <%= model %>); /** Updates a <%= model %>