Fixes coding issues

sync2
Laurent 1 year ago
parent cfd2ccb9fc
commit aa78348e98
  1. 2
      LeStorage/Codables/ApiCall.swift
  2. 2
      LeStorage/Services.swift

@ -22,7 +22,7 @@ class ApiCall<T: Storable>: 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

@ -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

Loading…
Cancel
Save