Browse Source

New backend name for hours worked

Hector Carrion 3 years ago
parent
commit
89de0159a9
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Comedores Sociales/Model/NetworkingModel.swift

+ 2
- 2
Comedores Sociales/Model/NetworkingModel.swift View File

@@ -106,7 +106,7 @@ struct UserDetails: Codable {
106 106
     let telefono: String
107 107
     let membresia: String?
108 108
     let vigencia: String?
109
-    let horas_trabajadas: String?
109
+    let horasTrabajadas: String?
110 110
 }
111 111
 
112 112
 func getUserDetails(input: String) -> UserDetails {
@@ -259,7 +259,7 @@ class ProfileViewModel: ObservableObject {
259 259
             self.profile.membershipStatus = .expired
260 260
         }
261 261
         
262
-        if let hours = data.horas_trabajadas {
262
+        if let hours = data.horasTrabajadas {
263 263
             self.profile.hoursWorked = Int(hours) ?? 0
264 264
         }
265 265