Skip to content

Commit ee034e4

Browse files
fix: correct zone handler return code
1 parent 9cecf08 commit ee034e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/infrastructure/api/handlers/ZonesHandler.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ZonesHandler(
4343
}.run {
4444
routingContext.response()
4545
.setStatusCode(
46-
if (this.isEmpty()) HttpResponseStatus.OK.code() else HttpResponseStatus.NO_CONTENT.code(),
46+
if (this.isNotEmpty()) HttpResponseStatus.OK.code() else HttpResponseStatus.NO_CONTENT.code(),
4747
)
4848
.putHeader("content-type", "application/json")
4949
.end(

0 commit comments

Comments
 (0)