feat: ajustar board de tickets
This commit is contained in:
parent
e9a8bd6b9b
commit
d23987eda8
7 changed files with 434 additions and 429 deletions
|
|
@ -7,6 +7,7 @@ import { prisma } from "@/lib/prisma"
|
|||
import { createCorsPreflight, jsonWithCors } from "@/server/cors"
|
||||
import { ConvexConfigurationError } from "@/server/convex-client"
|
||||
import { syncConvexCompany } from "@/server/companies-sync"
|
||||
import { safeCompanyFindMany } from "@/server/company-service"
|
||||
|
||||
export const runtime = "nodejs"
|
||||
|
||||
|
|
@ -75,7 +76,7 @@ export async function GET(request: Request) {
|
|||
...(orFilters.length > 0 ? { OR: orFilters } : {}),
|
||||
}
|
||||
|
||||
const companies = await prisma.company.findMany({
|
||||
const companies = await safeCompanyFindMany({
|
||||
where,
|
||||
orderBy: { name: "asc" },
|
||||
take: 20,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue