feat: add table

This commit is contained in:
Max Koon
2025-11-14 23:06:12 -05:00
parent 5b14b4e7a4
commit 9834b9518b
7 changed files with 163 additions and 32 deletions

View File

@@ -12,9 +12,9 @@ export const queries = {
.one();
}),
allTransactions: syncedQueryWithContext('allTransactions', z.tuple([]), (authData: AuthData | null) => {
isLoggedIn(authData);
// isLoggedIn(authData);
return builder.transaction
.where('user_id', '=', authData.user.id)
// .where('user_id', '=', authData.user.id)
.orderBy('datetime', 'desc')
.limit(50)
}),