18 lines
341 B
TypeScript
18 lines
341 B
TypeScript
import { db } from "@/lib/db";
|
|
|
|
export async function getEstruturaBriefing() {
|
|
return db.secao.findMany({
|
|
where: { ativo: true },
|
|
orderBy: { ordem: "asc" },
|
|
include: {
|
|
perguntas: {
|
|
where: { ativo: true },
|
|
orderBy: { ordem: "asc" },
|
|
include: {
|
|
ajuda: true
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|