Selaa lähdekoodia

Change Lat and Lon to Double instead of string

master
rpm-mcarman 3 vuotta sitten
vanhempi
commit
f468f32598
2 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. BIN
      .swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate
  2. +3
    -3
      Sources/App/Models/FuelEntry.swift

BIN
.swiftpm/xcode/package.xcworkspace/xcuserdata/michielcarman.xcuserdatad/UserInterfaceState.xcuserstate Näytä tiedosto


+ 3
- 3
Sources/App/Models/FuelEntry.swift Näytä tiedosto

@@ -21,10 +21,10 @@ final class FuelEntry: Model, Content {
var userID: String var userID: String


@Field(key: "latitude") @Field(key: "latitude")
var latitude: String
var latitude: Double
@Field(key: "longitude") @Field(key: "longitude")
var longitude: String
var longitude: Double


// @Field(key: "image") // @Field(key: "image")
// var image: String // var image: String
@@ -55,7 +55,7 @@ final class FuelEntry: Model, Content {


init() {} init() {}


init(id: UUID? = nil, timestamp: Date, userID: String, latitude: String, longitude: String, product: String, make: String, model: String, serialNumber: String, tankID: String, fuelAmount: Double, fuelType: String, isOverride: Bool) {
init(id: UUID? = nil, timestamp: Date, userID: String, latitude: Double, longitude: Double, product: String, make: String, model: String, serialNumber: String, tankID: String, fuelAmount: Double, fuelType: String, isOverride: Bool) {
self.id = id self.id = id
self.timestamp = timestamp self.timestamp = timestamp
self.userID = userID self.userID = userID


Ladataan…
Peruuta
Tallenna