Browse Source

Minor tweaks to sql and added docs to generate sitemap.js

pull/4/head
jrtechs 6 years ago
parent
commit
a4c66565ea
2 changed files with 6 additions and 1 deletions
  1. +5
    -0
      utils/generateSiteMap.js
  2. +1
    -1
      utils/sql.js

+ 5
- 0
utils/generateSiteMap.js View File

@ -4,6 +4,11 @@ const sql = require('../utils/sql');
module.exports=
{
/**
* Function which is responsible for writing the sitemap
* to ../sitemap.txt
*/
main: function()
{
sql.getSiteMap().then(function(result)

+ 1
- 1
utils/sql.js View File

@ -32,7 +32,7 @@ var fetch = function(sqlStatement)
{
return new Promise(function(resolve, reject)
{
con.query(sqlStatement, function (err, result)
con.query(sanitizer.sanitize(sqlStatement), function (err, result)
{
if(err)
{

Loading…
Cancel
Save