const Promise = require('promise'); const sql = require('../utils/sql'); module.exports= { /** Renders the the recent post sidebar. * * @returns {*|Promise} */ main: function() { return new Promise(function(resolve, reject) { console.log("recent page"); var content = "