From 7d6d26bb937ca0da0739c8e9d117698c171875b4 Mon Sep 17 00:00:00 2001 From: dashevchenko Date: Mon, 2 Dec 2024 12:21:11 +0200 Subject: [PATCH] fixed constraint check --- .../server/dao/mobile/MobileAppBundleServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dao/src/main/java/org/thingsboard/server/dao/mobile/MobileAppBundleServiceImpl.java b/dao/src/main/java/org/thingsboard/server/dao/mobile/MobileAppBundleServiceImpl.java index 4997ad8d30..e2c817e0c5 100644 --- a/dao/src/main/java/org/thingsboard/server/dao/mobile/MobileAppBundleServiceImpl.java +++ b/dao/src/main/java/org/thingsboard/server/dao/mobile/MobileAppBundleServiceImpl.java @@ -71,8 +71,8 @@ public class MobileAppBundleServiceImpl extends AbstractEntityService implements return savedMobileApp; } catch (Exception e) { checkConstraintViolation(e, - Map.of("android_app_id_unq_key", "Android mobile app already exists in another bundle!", - "ios_app_id_unq_key", "IOS mobile app already exists in another bundle!")); + Map.of("mobile_app_bundle_android_app_id_key", "Android mobile app is already configured in another bundle!", + "mobile_app_bundle_ios_app_id_key", "IOS mobile app is already configured in another bundle!")); throw e; } }