ios: fix download

This commit is contained in:
Emin 2024-12-30 20:21:46 +05:00
parent 64ed84bfa9
commit eb14807513
3 changed files with 4 additions and 5 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23231" systemVersion="24A335" minimumToolsVersion="Automatic" sourceLanguage="Swift" usedWithSwiftData="YES" userDefinedModelVersionIdentifier="">
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23507" systemVersion="24A335" minimumToolsVersion="Automatic" sourceLanguage="Swift" usedWithSwiftData="YES" userDefinedModelVersionIdentifier="">
<entity name="FavoriteSyncEntity" representedClassName="FavoriteSyncEntity" syncable="YES" codeGenerationType="class">
<attribute name="isFavorite" attributeType="Boolean" usesScalarValueType="YES"/>
<attribute name="placeId" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>
@ -21,7 +21,7 @@
<attribute name="rating" attributeType="Double" defaultValueString="0.0" usesScalarValueType="YES"/>
</entity>
<entity name="ReviewEntity" representedClassName="ReviewEntity" syncable="YES" codeGenerationType="class">
<attribute name="comment" attributeType="String"/>
<attribute name="comment" optional="YES" attributeType="String"/>
<attribute name="date" attributeType="String"/>
<attribute name="deletionPlanned" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/>
<attribute name="id" attributeType="Integer 64" defaultValueString="0" usesScalarValueType="YES"/>

View file

@ -4,7 +4,7 @@ struct ReviewDTO: Codable {
let id: Int64
let markId: Int64
let images: [String]
let message: String
let message: String?
let points: Int
let createdAt: String
let user: UserDTO

View file

@ -189,11 +189,10 @@ class AppNetworkHelper {
print("handling response \n\(loggingInfo)")
return decodedData
} catch {
print(error)
debugPrint(error)
throw ResourceError.other(message: "Failed to handle response: \(error.localizedDescription) on \n\(loggingInfo)")
}
} catch {
print("error: \(error)")
throw handleMappingError(error)
}
}