feat: migrate backend storage to postgres
This commit is contained in:
@@ -6,7 +6,7 @@ export default defineEventHandler(async (event) => {
|
||||
const query = getQuery(event);
|
||||
const currency = query.currency as string | undefined;
|
||||
|
||||
let accounts = listAccounts();
|
||||
let accounts = await listAccounts();
|
||||
|
||||
if (currency) {
|
||||
accounts = accounts.filter((account) => account.currency === currency);
|
||||
|
||||
Reference in New Issue
Block a user