Make storeMiddleware available in every request

This commit is contained in:
Alex Gleason
2024-04-29 15:04:13 -05:00
parent 61e648ff31
commit 0925f37929
2 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
import { NostrFilter, NStore } from '@nostrify/nostrify';
import { NostrFilter } from '@nostrify/nostrify';
import { z } from 'zod';
import { type AppContext, type AppController } from '@/app.ts';
@@ -45,7 +45,7 @@ const hashtagTimelineController: AppController = (c) => {
/** Render statuses for timelines. */
async function renderStatuses(c: AppContext, filters: NostrFilter[]) {
const { signal } = c.req.raw;
const store = c.get('store') as NStore;
const store = c.get('store');
const events = await store
.query(filters, { signal })