Skip to content

Commit 5d767c8

Browse files
committed
chore(deps): bump @neoxr/wb from 6.0.0-rc.4 to 6.0.0-rc.5
fix: prevent circular JSON errors when saving data (backup database before update!)
1 parent 275944d commit 5d767c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const connect = async () => {
8484

8585
setInterval(async () => {
8686
if (global.db) await system.database.save(global.db)
87-
}, 60 * 1000 * 5)
87+
}, 60 * 1000 * (['local', 'sqlite'].includes(system.session) ? 3 : 5))
8888

8989
cron.schedule('0 12 * * *', async () => {
9090
if (global?.db?.setting?.autobackup) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"homepage": "https://github.com/neoxr/neoxr-bot#readme",
2727
"dependencies": {
2828
"@adiwajshing/keyed-db": "^0.2.4",
29-
"@neoxr/wb": "^6.0.0-rc.4",
29+
"@neoxr/wb": "^6.0.0-rc.5",
3030
"baileys": "^7.0.0-rc.3",
3131
"cfonts": "3.1.1",
3232
"html-entities": "^2.5.2",

0 commit comments

Comments
 (0)