We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7285fea commit 2225fa6Copy full SHA for 2225fa6
routes/currentlyreading.js
@@ -31,8 +31,8 @@ async function currentlyreadingbook() {
31
else {
32
//4. delete existing collection in MongoDB after every 1000 entries
33
currentlyreadingcollection.countDocuments(function(error, result) {
34
- console.log(result)
35
- if (result > 1000){
+ console.log('# of documents in currently reading database: ' + result)
+ if (result > 999){
36
currentlyreadingcollection.drop()
37
console.log('Deleted currently reading book collection in MongoDB...')
38
}
0 commit comments