From a1326dedcc303d1ddb1d36b6e91c0fff41d7dde1 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Tue, 14 May 2024 21:53:50 -0300 Subject: [PATCH] fix(streaming): async storage --- src/controllers/api/streaming.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/streaming.ts b/src/controllers/api/streaming.ts index f1e2b4e..04cfbbc 100644 --- a/src/controllers/api/streaming.ts +++ b/src/controllers/api/streaming.ts @@ -77,7 +77,7 @@ const streamingController: AppController = (c) => { const event = msg[2]; if (pubkey) { - const policy = new MuteListPolicy(pubkey, Storages.admin); + const policy = new MuteListPolicy(pubkey, await Storages.admin()); const ok = await policy.call(event); if (ok[2] === false) { continue;