fix(sqlite): do not reset on destroy

am i actually retarded or something????
This commit is contained in:
alina 🌸 2023-11-30 01:27:51 +03:00
parent a36cdf1d20
commit 8e548d2aa5
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -503,9 +503,9 @@ export class SqliteStorage implements ITelegramStorage /*, IStateStorage*/ {
}
destroy(): void {
this.reset()
this._db.close()
clearInterval(this._vacuumTimeout)
this._saveUnimportantLater.reset()
}
reset(withAuthKeys = false): void {