diff --git a/src/controllers/PrinterController.ts b/src/controllers/PrinterController.ts index 90d13c9..6499d40 100644 --- a/src/controllers/PrinterController.ts +++ b/src/controllers/PrinterController.ts @@ -29,8 +29,7 @@ class PrinterController { if (campus == 'RT') networkCriteria = { OR: [{ shortName: 'RT1' }, { shortName: 'RT2' }] } - - if (campus == 'ALL') networkCriteria = undefined + else if (campus == 'ALL') networkCriteria = undefined else if (campus) networkCriteria = { shortName: String(campus) } const printers = await prisma.printer.findMany({