update multi accounts bar

This commit is contained in:
Ren Amamiya
2023-05-06 09:14:59 +07:00
parent 30c39d27f5
commit b55b595b20
5 changed files with 60 additions and 29 deletions

View File

@@ -23,7 +23,7 @@ export async function getActiveAccount() {
// get all accounts
export async function getAccounts() {
const db = await connect();
return await db.select(`SELECT * FROM accounts ORDER BY created_at DESC;`);
return await db.select(`SELECT * FROM accounts WHERE is_active = 0 ORDER BY created_at DESC;`);
}
// create account