Skip to content

Node.js based forum software built for the modern web

fixed typo

barisusaklib81f3552bbf7
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);
});
}