Skip to content

Commit

Permalink
Fix serialization type
Browse files Browse the repository at this point in the history
  • Loading branch information
mrashed-dev committed Nov 14, 2023
1 parent b8c4f10 commit 2edf9fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/kotlin/com/nylas/resources/Calendars.kt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ class Calendars(client: NylasClient) : Resource<Calendar>(client, Calendar::clas
.adapter(GetAvailabilityRequest::class.java)
.toJson(request)

return client.executePost(path, GetAvailabilityResponse::class.java, serializedRequestBody)
val responseType = Types.newParameterizedType(Response::class.java, GetAvailabilityResponse::class.java)

return client.executePost(path, responseType, serializedRequestBody)
}

/**
Expand Down

0 comments on commit 2edf9fb

Please sign in to comment.