From b17fd4d69e340f0de9db207ee9096594c5eb9a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sat, 30 Nov 2024 20:07:01 +0100 Subject: [PATCH] Wrap booth advance in an async transaction --- src/plugins/booth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/booth.js b/src/plugins/booth.js index 004e2919..6a86f550 100644 --- a/src/plugins/booth.js +++ b/src/plugins/booth.js @@ -493,7 +493,7 @@ class Booth { const result = this.#locker.using( [REDIS_ADVANCING], 10_000, - (signal) => this.#advanceLocked({ ...opts, signal }), + (signal) => this.#uw.db.transaction().execute(async (tx) => this.#advanceLocked({ ...opts, signal }, tx)), ); this.#awaitAdvance = result; return result;