From dc22b43108e2c6ff18a42858e65a0c5ae7758663 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Fri, 15 Jan 2021 21:55:27 -0800 Subject: [PATCH] Cleanup --- Mastodon/Sources/Mastodon/Entities/Poll.swift | 2 +- .../Sources/ServiceLayer/Services/IdentityService.swift | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Mastodon/Sources/Mastodon/Entities/Poll.swift b/Mastodon/Sources/Mastodon/Entities/Poll.swift index 08e80a9..c7639d3 100644 --- a/Mastodon/Sources/Mastodon/Entities/Poll.swift +++ b/Mastodon/Sources/Mastodon/Entities/Poll.swift @@ -9,7 +9,7 @@ public struct Poll: Codable, Hashable { } public let id: Id - public let expiresAt: Date + public let expiresAt: Date? public let expired: Bool public let multiple: Bool public let votesCount: Int diff --git a/ServiceLayer/Sources/ServiceLayer/Services/IdentityService.swift b/ServiceLayer/Sources/ServiceLayer/Services/IdentityService.swift index 3ad54e6..92fb293 100644 --- a/ServiceLayer/Sources/ServiceLayer/Services/IdentityService.swift +++ b/ServiceLayer/Sources/ServiceLayer/Services/IdentityService.swift @@ -71,7 +71,6 @@ public extension IdentityService { func refreshAnnouncements() -> AnyPublisher { mastodonAPIClient.request(AnnouncementsEndpoint.announcements) .flatMap(contentDatabase.update(announcements:)) - .print() .eraseToAnyPublisher() }