removed debugger statement from node/comments.js

stop commend / shutdown() now with:
 - sync commentDB
 - sync postsDB
master
derzombiiie 2021-08-18 19:02:19 +02:00
parent 30925ee9f3
commit 3b9a0ed447
5 changed files with 10 additions and 4 deletions

View File

@ -1406,3 +1406,6 @@ err, crashed!"
1629304119258 | Dumping config:
1629304119264 | {"debug":false,"logging":1337,"logfile":"logs/log.log","ipget_endpoint_set":"//derzombiiie.com/getip.php?settoken=${TOKEN}","ipget_endpoint_get":"//derzombiiie.com/getip.php?token=${TOKEN}","cl":true,"site_name":"blog.derzombiiie.com","search_enable":false,"search_only_tags":true,"commenting_enabled":true,"post_ranking_auto":43200,"index_post_sort":"new","comment_sync_on_write":false,"comment_auto_sync":360}
1629304397288 | Reading posts sorted by "new" with a length of 10
--- SEPERATOR ---
--- SEPERATOR ---
--- SEPERATOR ---

View File

@ -177,6 +177,10 @@ con.registercmd( "post", (arg => {
function shutdown() {
log.log("Shutting down", log.d.basic)
log.clearBUFF()
postsDB.sync()
commentDB.sync()
process.exit(1)
}

View File

@ -15,7 +15,6 @@ this.push = (post, comment) => {
}
this.get = (post, len) => {
debugger
if ( !post ) return {"type":"err","text":"no post"}
if ( !typeof(len) == "number" || !typeof(len) == "undefined" ) return {"type":"err","text":"bad length"}

View File

@ -33,5 +33,5 @@
"body": "This is a test to test\nif the authorinfo works correctly!",
"id": 3
},
"0-len": 4
}
"0-len": 4
}

View File

@ -37,4 +37,4 @@
"id": 1
},
"len": 1
}
}