Skip to content

Commit

Permalink
Serialization Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matgar26 committed Mar 20, 2024
1 parent ee04a87 commit 49d16c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sdk/src/main/java/app/knock/client/KnockFeed.kt
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ class FeedManager(
val mergedOptions = defaultFeedOptions.mergeOptions(options)
val mapper = jacksonObjectMapper()
val triggerDataJsonString = mergedOptions.triggerData?.let { mapper.writeValueAsString(it) }
val statusString = mergedOptions.status?.toString()?.lowercase()
val archivedString = mergedOptions.archived?.toString()?.lowercase()

val queryItems: List<URLQueryItem> = listOf(
URLQueryItem("page_size", mergedOptions.pageSize),
Expand All @@ -285,8 +287,8 @@ class FeedManager(
URLQueryItem("source", mergedOptions.source),
URLQueryItem("tenant", mergedOptions.tenant),
URLQueryItem("has_tenant", mergedOptions.hasTenant),
URLQueryItem("status", mergedOptions.status),
URLQueryItem("archived", mergedOptions.archived),
URLQueryItem("status", statusString),
URLQueryItem("archived", archivedString),
URLQueryItem("trigger_data", triggerDataJsonString)
)

Expand Down

0 comments on commit 49d16c5

Please sign in to comment.