Fixed 201 code
This commit is contained in:
1 parent
03e87ad36c
commit
85b23119d9
1 file changed
+1
-1
@@ -74,7 +74,7 @@ object NetworkDataSource {
|
||||
setBody(BookBody(date, placeId))
|
||||
}
|
||||
when(response.status) {
|
||||
HttpStatusCode.OK -> true
|
||||
HttpStatusCode.Created -> true
|
||||
else -> error(response.bodyAsText())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user