fix sync package

This commit is contained in:
Nikita Sivukhin
2025-10-01 11:08:42 +04:00
parent 7869ac348e
commit 109b3c0609
9 changed files with 74 additions and 105 deletions

View File

@@ -83,7 +83,9 @@ class Database extends DatabasePromise {
* connect database and initialize it in case of clean start
*/
override async connect() {
if (this.connected) { return; }
await run(this.#runOpts, this.#io, this.#engine, this.#engine.connect());
this.connected = true;
}
/**
* pull new changes from the remote database