瀏覽代碼

Removed Pagination

v2_uploadImages
rpm-mcarman 2 年之前
父節點
當前提交
7e31c3c36b
共有 2 個檔案被更改,包括 2 行新增2 行删除
  1. 二進制
      .swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate
  2. +2
    -2
      Sources/App/Controllers/FuelEntryV2Controller.swift

二進制
.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate 查看文件


+ 2
- 2
Sources/App/Controllers/FuelEntryV2Controller.swift 查看文件

@@ -20,8 +20,8 @@ struct FuelEntryV2Controller: RouteCollection {
}
}
func index(req: Request) async throws -> Page<FuelEntry> {
try await FuelEntry.query(on: req.db).paginate(for: req)
func index(req: Request) async throws -> [FuelEntry] {
return try await FuelEntry.query(on: req.db).all()
}
// func getAllEntriesWithImages(req: Request) async throws -> [FuelEntry] {


Loading…
取消
儲存