Initial SeConectai briefing system
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user