remove localstorage

This commit is contained in:
Ren Amamiya
2023-04-24 11:59:33 +07:00
parent bd262a12e7
commit 98637feba4
27 changed files with 123 additions and 125 deletions

View File

@@ -48,6 +48,13 @@ export async function getPlebs() {
return await db.select(`SELECT * FROM plebs ORDER BY created_at DESC;`);
}
// get pleb by pubkey
export async function getPleb(pubkey: string) {
const db = await connect();
const result = await db.select(`SELECT * FROM plebs WHERE pubkey = "${pubkey}"`);
return result[0];
}
// create pleb
export async function createPleb(pubkey: string, metadata: string) {
const db = await connect();