From ba6d33c115fbbb6e1166eb18d893d78a363a4220 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Tue, 30 Apr 2024 21:20:19 -0300 Subject: [PATCH] feat: create getAdminStore() func --- src/storages/adminStore.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/storages/adminStore.ts diff --git a/src/storages/adminStore.ts b/src/storages/adminStore.ts new file mode 100644 index 0000000..0b5bb38 --- /dev/null +++ b/src/storages/adminStore.ts @@ -0,0 +1,7 @@ +import { UserStore } from '@/storages/UserStore.ts'; +import { Conf } from '@/config.ts'; +import { eventsDB } from '@/storages.ts'; + +export function getAdminStore() { + return new UserStore(Conf.pubkey, eventsDB); +}