From 6c0fe6868cb2944104264b5f43e4f927c96cff5d Mon Sep 17 00:00:00 2001 From: Tim <47184194+imgde@users.noreply.github.com> Date: Sun, 22 Jun 2025 13:42:16 +0200 Subject: [PATCH] fix update article --- .../java/de/htwsaar/webshop/controller/ArticleController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/00-backend/src/main/java/de/htwsaar/webshop/controller/ArticleController.java b/00-backend/src/main/java/de/htwsaar/webshop/controller/ArticleController.java index 3cc99e1..a30c8fb 100644 --- a/00-backend/src/main/java/de/htwsaar/webshop/controller/ArticleController.java +++ b/00-backend/src/main/java/de/htwsaar/webshop/controller/ArticleController.java @@ -74,7 +74,7 @@ public class ArticleController { return ResponseEntity.badRequest().body(false); } article.setId(articleService.findByUUID(uuid).getId()); - if (articleService.update(article) != null) { + if (articleService.update(article) == null) { return ResponseEntity.internalServerError().body(false); } return ResponseEntity.ok(true);