From d68f04c633cbc8552efc7704af2a66d6879080f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Oszcz=C4=99da?= Date: Sat, 5 Oct 2024 23:00:19 +0100 Subject: [PATCH] fix: Add call to wait for the database to be ready. --- source/library/adapters/databases/rethinkdb/database.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/library/adapters/databases/rethinkdb/database.ts b/source/library/adapters/databases/rethinkdb/database.ts index 5ee5d0ef6..1a8e7ae74 100644 --- a/source/library/adapters/databases/rethinkdb/database.ts +++ b/source/library/adapters/databases/rethinkdb/database.ts @@ -85,6 +85,8 @@ class RethinkDBAdapter extends DatabaseAdapter { this.#connection.use(this.#databaseName); + await rethinkdb.r.db(this.#databaseName).wait().run(this.#connection); + await this.#createMissingTables(); }