removed debugger statement from node/comments.js
stop commend / shutdown() now with: - sync commentDB - sync postsDBmaster
parent
30925ee9f3
commit
3b9a0ed447
|
@ -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 ---
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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"}
|
||||
|
||||
|
|
|
@ -33,5 +33,5 @@
|
|||
"body": "This is a test to test\nif the authorinfo works correctly!",
|
||||
"id": 3
|
||||
},
|
||||
"0-len": 4
|
||||
"0-len": 4
|
||||
}
|
Loading…
Reference in New Issue