Skip to content

Commit 2225fa6

Browse files
committed
revised console.log explanation in line 34
1 parent 7285fea commit 2225fa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routes/currentlyreading.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ async function currentlyreadingbook() {
3131
else {
3232
//4. delete existing collection in MongoDB after every 1000 entries
3333
currentlyreadingcollection.countDocuments(function(error, result) {
34-
console.log(result)
35-
if (result > 1000){
34+
console.log('# of documents in currently reading database: ' + result)
35+
if (result > 999){
3636
currentlyreadingcollection.drop()
3737
console.log('Deleted currently reading book collection in MongoDB...')
3838
}

0 commit comments

Comments
 (0)