feat: ajustar board de tickets
This commit is contained in:
parent
e9a8bd6b9b
commit
d23987eda8
7 changed files with 434 additions and 429 deletions
|
|
@ -4,7 +4,7 @@ import { prisma } from "@/lib/prisma"
|
|||
import { DEFAULT_TENANT_ID } from "@/lib/constants"
|
||||
import { requireStaffSession } from "@/lib/auth-server"
|
||||
import { AdminUsersWorkspace, type AdminAccount } from "@/components/admin/users/admin-users-workspace"
|
||||
import { normalizeCompany } from "@/server/company-service"
|
||||
import { fetchCompaniesByTenant, normalizeCompany } from "@/server/company-service"
|
||||
|
||||
export const runtime = "nodejs"
|
||||
export const dynamic = "force-dynamic"
|
||||
|
|
@ -79,10 +79,7 @@ export default async function AdminUsersPage() {
|
|||
}
|
||||
})
|
||||
|
||||
const companiesRaw = await prisma.company.findMany({
|
||||
where: { tenantId },
|
||||
orderBy: { name: "asc" },
|
||||
})
|
||||
const companiesRaw = await fetchCompaniesByTenant(tenantId)
|
||||
const companies = companiesRaw.map(normalizeCompany)
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue