this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

better error handling

+5 -1
+5 -1
Sources/bskyKit/BskyService.swift
··· 404 404 /// - Parameter date: The timestamp to mark as seen (default: now). 405 405 /// - Throws: An error if not authenticated or the request fails. 406 406 public func updateSeen(at date: Date = Date()) async throws { 407 - let _: EmptyResponse = try await execute(.updateSeen(seenAt: date)) 407 + do { 408 + let _: EmptyResponse = try await execute(.updateSeen(seenAt: date)) 409 + } catch is DecodingError { 410 + // updateSeen returns an empty body on success — decoding failure is expected 411 + } 408 412 } 409 413 410 414 // MARK: - Chat