mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-01 00:08:53 +02:00
fixed typo
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user