From 25db277a9f18878408277d26bd5dda0ca73aac87 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 29 Apr 2024 15:10:08 -0500 Subject: [PATCH] storeMiddleware: remove `as string` --- src/middleware/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/store.ts b/src/middleware/store.ts index 8bb595c..a22bb79 100644 --- a/src/middleware/store.ts +++ b/src/middleware/store.ts @@ -4,7 +4,7 @@ import { eventsDB } from '@/storages.ts'; /** Store middleware. */ const storeMiddleware: AppMiddleware = async (c, next) => { - const pubkey = c.get('pubkey') as string; + const pubkey = c.get('pubkey'); if (pubkey) { const store = new UserStore(pubkey, eventsDB);