feat: Removes some logging that was used to debug.

This commit is contained in:
2025-01-09 16:45:09 -05:00
parent bf71b725f6
commit c4410706fd
3 changed files with 6 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
<th>Vendor</th>
<th>Materials</th>
<th>Created For</th>
<th>Created By</th>
<th>Truck Stock</th>
<th>#extend("btn/toggle-form")</th>
</tr>
@@ -16,6 +17,7 @@
<td>#capitalized(po.vendorBranch.vendor.name) - #capitalized(po.vendorBranch.name)</td>
<td>#(po.materials)</td>
<td>#capitalized(po.createdFor.firstName) #capitalized(po.createdFor.lastName)</td>
<td>#(po.createdBy.username)</td>
<td>#capitalized(po.truckStock)</td>
<td>
<!-- TODO: add buttons here -->

View File

@@ -59,7 +59,9 @@ struct ApiController: RouteCollection {
@Sendable
func employeesIndex(req: Request) async throws -> [Employee.DTO] {
var dbQuery = Employee.query(on: req.db)
var dbQuery = Employee
.query(on: req.db)
.sort(\.$lastName)
let params = try req.query.decode(EmployeesIndexQuery.self)
if params.active == true {

View File

@@ -16,7 +16,7 @@ struct PurchaseOrderViewController: RouteCollection {
let purchaseOrders = try await api.purchaseOrdersIndex(req: req)
let branches = try await api.getBranches(req: req)
let employees = try await api.employeesIndex(req: req)
req.logger.info("Branches: \(branches)")
req.logger.debug("Branches: \(branches)")
return try await req.view.render(
"purchaseOrders/index",
PurchaseOrderCTX(