diff --git a/LeStorage/Codables/ApiCall.swift b/LeStorage/Codables/ApiCall.swift index fbd5ccb..9eb7752 100644 --- a/LeStorage/Codables/ApiCall.swift +++ b/LeStorage/Codables/ApiCall.swift @@ -22,7 +22,7 @@ class ApiCall: ModelObject, Storable, SomeCall { var id: String = Store.randomId() /// Creation date of the call - var creationDate: Date = Date() + var creationDate: Date? = Date() /// The HTTP method of the call: post... var method: HTTPMethod diff --git a/LeStorage/Services.swift b/LeStorage/Services.swift index 4a4db8b..4fd0be2 100644 --- a/LeStorage/Services.swift +++ b/LeStorage/Services.swift @@ -394,7 +394,7 @@ public class Services { let tokenString = deviceToken.map { String(format: "%02x", $0) }.joined() let token = DeviceToken(value: tokenString) // Logger.log("Send device token = \(tokenString)") - let _: DeviceToken = try await self._runRequest(serviceCall: postDeviceTokenCall, payload: token) + let _: Empty = try await self._runRequest(serviceCall: postDeviceTokenCall, payload: token) } /// A method that sends a request to change a user's password