storeMiddleware: remove as string

This commit is contained in:
Alex Gleason
2024-04-29 15:10:08 -05:00
parent 8902dc28c1
commit 25db277a9f

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