feat: Removes some logging that was used to debug.
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
<th>Vendor</th>
|
<th>Vendor</th>
|
||||||
<th>Materials</th>
|
<th>Materials</th>
|
||||||
<th>Created For</th>
|
<th>Created For</th>
|
||||||
|
<th>Created By</th>
|
||||||
<th>Truck Stock</th>
|
<th>Truck Stock</th>
|
||||||
<th>#extend("btn/toggle-form")</th>
|
<th>#extend("btn/toggle-form")</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -16,6 +17,7 @@
|
|||||||
<td>#capitalized(po.vendorBranch.vendor.name) - #capitalized(po.vendorBranch.name)</td>
|
<td>#capitalized(po.vendorBranch.vendor.name) - #capitalized(po.vendorBranch.name)</td>
|
||||||
<td>#(po.materials)</td>
|
<td>#(po.materials)</td>
|
||||||
<td>#capitalized(po.createdFor.firstName) #capitalized(po.createdFor.lastName)</td>
|
<td>#capitalized(po.createdFor.firstName) #capitalized(po.createdFor.lastName)</td>
|
||||||
|
<td>#(po.createdBy.username)</td>
|
||||||
<td>#capitalized(po.truckStock)</td>
|
<td>#capitalized(po.truckStock)</td>
|
||||||
<td>
|
<td>
|
||||||
<!-- TODO: add buttons here -->
|
<!-- TODO: add buttons here -->
|
||||||
|
|||||||
@@ -59,7 +59,9 @@ struct ApiController: RouteCollection {
|
|||||||
|
|
||||||
@Sendable
|
@Sendable
|
||||||
func employeesIndex(req: Request) async throws -> [Employee.DTO] {
|
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)
|
let params = try req.query.decode(EmployeesIndexQuery.self)
|
||||||
if params.active == true {
|
if params.active == true {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ struct PurchaseOrderViewController: RouteCollection {
|
|||||||
let purchaseOrders = try await api.purchaseOrdersIndex(req: req)
|
let purchaseOrders = try await api.purchaseOrdersIndex(req: req)
|
||||||
let branches = try await api.getBranches(req: req)
|
let branches = try await api.getBranches(req: req)
|
||||||
let employees = try await api.employeesIndex(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(
|
return try await req.view.render(
|
||||||
"purchaseOrders/index",
|
"purchaseOrders/index",
|
||||||
PurchaseOrderCTX(
|
PurchaseOrderCTX(
|
||||||
|
|||||||
Reference in New Issue
Block a user