diff --git a/src/MariaDB.ts b/src/MariaDB.ts index 91c2d45..7dd72f1 100644 --- a/src/MariaDB.ts +++ b/src/MariaDB.ts @@ -338,7 +338,7 @@ class MariaDB const pool = this.#pool; if (nodeName) { - const available = this.#nodes.filter(n => n.status === 'synced'); + const available = this.#nodes.filter(n => n.status === 'synced' || !n.status); if (!available.length) throw new Error('No nodes available for query'); const node = this.#nodes.find(n => n.name === nodeName);