storeMiddleware: remove `as string`

This commit is contained in:
Alex Gleason 2024-04-29 15:10:08 -05:00
parent 8902dc28c1
commit 25db277a9f
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -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);