2 Incheckningar

Upphovsman SHA1 Meddelande Datum
  Mike Carman c586708c1c Reset port 1 år sedan
  Mike Carman ee94988698 fix for null downloaded 1 år sedan
2 ändrade filer med 2 tillägg och 2 borttagningar
Unifierad Vy
  1. Binär
      .swiftpm/xcode/package.xcworkspace/xcuserdata/mcarman.xcuserdatad/UserInterfaceState.xcuserstate
  2. +2
    -2
      Sources/App/Controllers/FuelEntryV2Controller.swift

Binär
.swiftpm/xcode/package.xcworkspace/xcuserdata/mcarman.xcuserdatad/UserInterfaceState.xcuserstate Visa fil


+ 2
- 2
Sources/App/Controllers/FuelEntryV2Controller.swift Visa fil

@@ -126,12 +126,12 @@ struct FuelEntryV2Controller: RouteCollection {
if(image){ if(image){
//query = query.filter(\.$image) //query = query.filter(\.$image)
let wimage = try await query.paginate(for: req).map{ let wimage = try await query.paginate(for: req).map{
img in FuelEntry.wimage(id: img.id, timestamp: img.timestamp, userID: img.userID, latitude: img.latitude, longitutde: img.longitude, product: img.product, make: img.make, model: img.model, serialNumber: img.serialNumber, tankID: img.tankID, fuelAmount: img.fuelAmount, fuelType: img.fuelType, isOverride: img.isOverride, image: img.image == nil ? Data(): img.image, downloaded: img.downloaded!)
img in FuelEntry.wimage(id: img.id, timestamp: img.timestamp, userID: img.userID, latitude: img.latitude, longitutde: img.longitude, product: img.product, make: img.make, model: img.model, serialNumber: img.serialNumber, tankID: img.tankID, fuelAmount: img.fuelAmount, fuelType: img.fuelType, isOverride: img.isOverride, image: img.image == nil ? Data(): img.image, downloaded: img.downloaded == nil ? false : img.downloaded!)
} }
return try await wimage.encodeResponse(for: req) return try await wimage.encodeResponse(for: req)
} else { } else {
let woimage = try await query.paginate(for: req).map{ let woimage = try await query.paginate(for: req).map{
img in FuelEntry.woimage(id: img.id, timestamp: img.timestamp, userID: img.userID, latitude: img.latitude, longitutde: img.longitude, product: img.product, make: img.make, model: img.model, serialNumber: img.serialNumber, tankID: img.tankID, fuelAmount: img.fuelAmount, fuelType: img.fuelType, isOverride: img.isOverride, downloaded: img.downloaded!)
img in FuelEntry.woimage(id: img.id, timestamp: img.timestamp, userID: img.userID, latitude: img.latitude, longitutde: img.longitude, product: img.product, make: img.make, model: img.model, serialNumber: img.serialNumber, tankID: img.tankID, fuelAmount: img.fuelAmount, fuelType: img.fuelType, isOverride: img.isOverride, downloaded: img.downloaded == nil ? false : img.downloaded!)
} }
return try await woimage.encodeResponse(for: req) return try await woimage.encodeResponse(for: req)
} }


Laddar…
Avbryt
Spara