ソースを参照

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] {


読み込み中…
キャンセル
保存