BREAKING: postgres + saas

This commit is contained in:
Vasily Zubarev
2025-04-03 13:07:54 +02:00
parent 54a892ddb0
commit f523b1f8ba
136 changed files with 3971 additions and 1563 deletions

View File

@@ -6,6 +6,7 @@ import {
DialogTitle,
DialogTrigger,
} from "@/components/ui/dialog"
import { getCurrentUser } from "@/lib/auth"
import { getCategories } from "@/models/categories"
import { getCurrencies } from "@/models/currencies"
import { getProjects } from "@/models/projects"
@@ -13,10 +14,11 @@ import { getSettings } from "@/models/settings"
import TransactionCreateForm from "./create"
export async function NewTransactionDialog({ children }: { children: React.ReactNode }) {
const categories = await getCategories()
const currencies = await getCurrencies()
const settings = await getSettings()
const projects = await getProjects()
const user = await getCurrentUser()
const categories = await getCategories(user.id)
const currencies = await getCurrencies(user.id)
const settings = await getSettings(user.id)
const projects = await getProjects(user.id)
return (
<Dialog>