From 6508cf6af64b8916b1d2724526ac28f09f1ecc42 Mon Sep 17 00:00:00 2001 From: thcai Date: Wed, 28 Aug 2024 12:07:57 +0200 Subject: [PATCH] Fix sent version in eventLog --- .../java/com/michelin/ns4kafka/controller/SchemaController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/michelin/ns4kafka/controller/SchemaController.java b/src/main/java/com/michelin/ns4kafka/controller/SchemaController.java index b1009c49..8ebc23af 100644 --- a/src/main/java/com/michelin/ns4kafka/controller/SchemaController.java +++ b/src/main/java/com/michelin/ns4kafka/controller/SchemaController.java @@ -182,7 +182,7 @@ public Mono> delete(String namespace, .map(deletedVersionIds -> { Schema deletedSchema = subjectOptional.get(); sendEventLog(deletedSchema, ApplyStatus.deleted, deletedSchema.getSpec(), null, - version.map(v -> "").orElseGet(() -> String.valueOf(deletedVersionIds))); + version.map(v -> String.valueOf(deletedVersionIds)).orElseGet(() -> "")); return HttpResponse.noContent(); }); });