Implement NStore interface from NLib

This commit is contained in:
Alex Gleason
2024-01-23 14:06:16 -06:00
parent 0a58233b4e
commit c6062874bd
32 changed files with 193 additions and 218 deletions

View File

@@ -6,7 +6,7 @@ import { eventsDB } from '@/storages.ts';
const instanceController: AppController = async (c) => {
const { host, protocol } = Conf.url;
const [event] = await eventsDB.filter([{ kinds: [0], authors: [Conf.pubkey], limit: 1 }]);
const [event] = await eventsDB.query([{ kinds: [0], authors: [Conf.pubkey], limit: 1 }]);
const meta = jsonServerMetaSchema.parse(event?.content);
/** Protocol to use for WebSocket URLs, depending on the protocol of the `LOCAL_DOMAIN`. */