Fixed 201 code
This commit is contained in:
@@ -74,7 +74,7 @@ object NetworkDataSource {
|
|||||||
setBody(BookBody(date, placeId))
|
setBody(BookBody(date, placeId))
|
||||||
}
|
}
|
||||||
when(response.status) {
|
when(response.status) {
|
||||||
HttpStatusCode.OK -> true
|
HttpStatusCode.Created -> true
|
||||||
else -> error(response.bodyAsText())
|
else -> error(response.bodyAsText())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user