mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
Added req and res objects to the widget rendering process before callback in src/controllers/api.js
This commit is contained in:
@@ -114,11 +114,15 @@ apiController.renderWidgets = function(req, res, next) {
|
||||
return res.status(200).json({});
|
||||
}
|
||||
|
||||
widgets.render(req.uid, {
|
||||
template: areas.template,
|
||||
url: areas.url,
|
||||
locations: areas.locations
|
||||
}, function(err, widgets) {
|
||||
widgets.render(req.uid,
|
||||
{
|
||||
template: areas.template,
|
||||
url: areas.url,
|
||||
locations: areas.locations,
|
||||
},
|
||||
req,
|
||||
res,
|
||||
function(err, widgets) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user