From b81f3552bbf7302a9558f28182d6d3ad1188fad3 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 9 Jun 2014 02:34:21 -0400 Subject: [PATCH] fixed typo --- src/routes/api.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/routes/api.js b/src/routes/api.js index 5f7ef811cd..354c3d640b 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -134,11 +134,11 @@ function getModerators(req, res, next) { }); } -var templatsListingCache = []; +var templatesListingCache = []; function getTemplatesListing(req, res, next) { - if (templatsListingCache.length) { - return res.json(templatsListingCache); + if (templatesListingCache.length) { + return res.json(templatesListingCache); } async.parallel({ @@ -160,7 +160,7 @@ function getTemplatesListing(req, res, next) { }); data = data.concat(results.extended); - templatsListingCache = data; + templatesListingCache = data; res.json(data); }); }