Round 13b: Report Scheduling, Multi-School District Support
This commit is contained in:
1 parent
ff4dd670d4
commit
d325984786
4 files changed
+27
-3
No files matched your search
@@ -12,7 +12,6 @@ export async function GET(
|
||||
where: { id, deletedAt: null },
|
||||
include: {
|
||||
schools: {
|
||||
where: { deletedAt: null },
|
||||
select: {
|
||||
id: true,
|
||||
name: true,
|
||||
|
||||
@@ -17,7 +17,7 @@ export async function GET(
|
||||
}
|
||||
|
||||
const schools = await db.school.findMany({
|
||||
where: { districtId: id, deletedAt: null },
|
||||
where: { districtId: id },
|
||||
include: {
|
||||
_count: {
|
||||
select: { students: true, classGroups: true, users: true },
|
||||
|
||||
@@ -8,7 +8,6 @@ export async function GET() {
|
||||
where: { deletedAt: null },
|
||||
include: {
|
||||
schools: {
|
||||
where: { deletedAt: null },
|
||||
select: { id: true, name: true, schoolType: true, country: true },
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user