mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-31 20:24:24 +01:00
Don't let your memes be dreams
This commit is contained in:
@@ -7,10 +7,10 @@ export const storeMiddleware: AppMiddleware = async (c, next) => {
|
||||
const pubkey = await c.get('signer')?.getPublicKey();
|
||||
|
||||
if (pubkey) {
|
||||
const store = new UserStore(pubkey, Storages.admin);
|
||||
const store = new UserStore(pubkey, await Storages.admin());
|
||||
c.set('store', store);
|
||||
} else {
|
||||
c.set('store', Storages.admin);
|
||||
c.set('store', await Storages.admin());
|
||||
}
|
||||
await next();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user