Fixed 201 code

This commit is contained in:
2025-12-04 11:56:10 +03:00
parent 03e87ad36c
commit 85b23119d9

View File

@@ -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())
} }
} }