From c949f0766eceeb572947890e1b98786cd8ab9d0d Mon Sep 17 00:00:00 2001 From: tiefseetauchner Date: Fri, 16 Aug 2024 12:46:03 +0200 Subject: [PATCH] - fix the queue not being waited for --- cli/src/queue.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/src/queue.ts b/cli/src/queue.ts index c700028a158a9..0b6d6281461cc 100644 --- a/cli/src/queue.ts +++ b/cli/src/queue.ts @@ -72,8 +72,8 @@ export class Queue { * @returns Promise - The returned Promise will be resolved when all tasks in the queue have been processed by a worker. * This promise could be ignored as it will not lead to a `unhandledRejection`. */ - async drained(): Promise { - await this.queue.drain(); + drained(): Promise { + return this.queue.drained(); } /**