diff --git a/.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate b/.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate index b2d5e9d..406ac5f 100644 Binary files a/.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate and b/.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Sources/App/Controllers/FuelEntryV2Controller.swift b/Sources/App/Controllers/FuelEntryV2Controller.swift index ced8fb9..7dbaaa7 100644 --- a/Sources/App/Controllers/FuelEntryV2Controller.swift +++ b/Sources/App/Controllers/FuelEntryV2Controller.swift @@ -20,8 +20,8 @@ struct FuelEntryV2Controller: RouteCollection { } } - func index(req: Request) async throws -> Page { - 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] {