fix: init db failed

This commit is contained in:
linyuchen 2024-03-06 22:57:36 +08:00
parent e1d47f55bf
commit 239cf18887
3 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,10 @@
{ {
"manifest_version": 4, "manifest_version": 4,
"type": "extension", "type": "extension",
"name": "LLOneBot v3.13.1", "name": "LLOneBot v3.13.2",
"slug": "LLOneBot", "slug": "LLOneBot",
"description": "LiteLoaderQQNT的OneBotApi", "description": "LiteLoaderQQNT的OneBotApi",
"version": "3.13.1", "version": "3.13.2",
"thumbnail": "./icon.png", "thumbnail": "./icon.png",
"authors": [ "authors": [
{ {

View File

@ -24,9 +24,9 @@ class DBUtil {
new Promise((resolve, reject) => { new Promise((resolve, reject) => {
const initDB = () => { const initDB = () => {
initCount++; initCount++;
if (initCount > 50) { // if (initCount > 50) {
return reject("init db fail") // return reject("init db fail")
} // }
try { try {
if (!selfInfo.uin) { if (!selfInfo.uin) {
@ -38,7 +38,7 @@ class DBUtil {
console.log("llonebot init db success") console.log("llonebot init db success")
resolve(null) resolve(null)
} catch (e) { } catch (e) {
// console.log("init db fail", e.stack.toString()) console.log("init db fail", e.stack.toString())
setTimeout(initDB, 300); setTimeout(initDB, 300);
} }
} }

View File

@ -1 +1 @@
export const version = "3.13.1" export const version = "3.13.2"