fixed duplicate connection

This commit is contained in:
Ren Amamiya
2023-03-01 21:19:31 +07:00
parent 458f826958
commit 3b78123939
8 changed files with 31 additions and 52 deletions

View File

@@ -39,7 +39,6 @@ export const User = memo(function User({ pubkey, time }: { pubkey: string; time:
useEffect(() => {
const initialProfile = async () => {
const result: any = await db.select(`SELECT metadata FROM cache_profiles WHERE id = "${pubkey}"`);
db.close;
return result;
};