Skip to content

Commit

Permalink
Merge pull request #145 from DimensionSrl/bug-fix/events_parsing
Browse files Browse the repository at this point in the history
Fixes events parsing
  • Loading branch information
dulvui authored Mar 14, 2024
2 parents ced088d + 6ad9c6d commit b0e6528
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private extension Event {

var imageURL = (eventShort.imageGallery ?? [])
.lazy
.compactMap(\.imageUrl)
.compactMap { $0?.imageUrl }
.first
.flatMap(URL.init(string:))
// Get an image from a http url as https content
Expand Down
8 changes: 4 additions & 4 deletions NOICommunityLib/Sources/EventShortClient/Models.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,21 @@ public struct EventShort: Decodable, Equatable {
public let contactPostalCode: String?
public let contactCity: String?
public let contactCountry: String?
public let roomBooked: [RoomBooked]?
public let imageGallery: [ImageGallery]?
public let roomBooked: [RoomBooked?]?
public let imageGallery: [ImageGallery?]?
public let videoUrl: String?
public let activeWeb: Bool?
public let eventTextDE: String?
public let eventTextIT: String?
public let eventTextEN: String?
public let technologyFields: [String?]?
public let customTagging: [String]?
public let customTagging: [String?]?
public let soldOut: Bool?
public let eventDocument: [DocumentPDF]?
public let externalOrganizer: Bool?
public let shortname: String?
public let gpsPoints: GpsInfo?
public let publishedOn: [String]?
public let publishedOn: [String?]?
}

// MARK: - EventShortListRequest
Expand Down

0 comments on commit b0e6528

Please sign in to comment.