mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-24 03:34:18 +01:00
fix sync package
This commit is contained in:
@@ -83,6 +83,7 @@ class Database extends DatabasePromise {
|
||||
* connect database and initialize it in case of clean start
|
||||
*/
|
||||
override async connect() {
|
||||
if (this.connected) { return; }
|
||||
if (!this.memory) {
|
||||
this.#worker = await init();
|
||||
await Promise.all([
|
||||
@@ -94,6 +95,7 @@ class Database extends DatabasePromise {
|
||||
]);
|
||||
}
|
||||
await run(this.#runOpts, this.#io, this.#engine, this.#engine.connect());
|
||||
this.connected = true;
|
||||
}
|
||||
/**
|
||||
* pull new changes from the remote database
|
||||
|
||||
Reference in New Issue
Block a user