wip: migrated to nostr-relaypool

This commit is contained in:
Ren Amamiya
2023-02-26 18:01:28 +07:00
parent 3fbe6b3986
commit f3da53f098
6 changed files with 106 additions and 44 deletions
+2 -2
View File
@@ -40,7 +40,7 @@ export default function Page() {
return result;
}, []);
const getFollows = useCallback(async (account) => {
const getFollows = useCallback(async (account: { id: string }) => {
const arr = [];
const result: any = await db.select(`SELECT pubkey FROM follows WHERE account = "${account.id}"`);
@@ -82,7 +82,7 @@ export default function Page() {
})
.catch(console.error);
});
}, [getAccount, getFollows, requestNotification, router]);
}, [requestNotification, getAccount, getFollows, router]);
return (
<div className="relative flex h-full flex-col items-center justify-between">