This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-NodeJSBlog
mirror of
https://github.com/jrtechs/NodeJSBlog.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Minor tweaks to sql and added docs to generate sitemap.js
pull/4/head
jrtechs
6 years ago
parent
cec78711f8
commit
a4c66565ea
2 changed files
with
6 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
utils/generateSiteMap.js
+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
(
s
anitizer
.
sanitize
(
s
qlStatement
)
,
function
(
err
,
result
)
{
if
(
err
)
{
Write
Preview
Loading…
Cancel
Save