From ef66bc38bf521f139bd7e8ca7c58e986f5c097b2 Mon Sep 17 00:00:00 2001 From: Andrii Landiak Date: Tue, 9 Apr 2024 17:05:17 +0300 Subject: [PATCH] Fix compile error --- .../service/cloud/rpc/processor/TenantCloudProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/src/main/java/org/thingsboard/server/service/cloud/rpc/processor/TenantCloudProcessor.java b/application/src/main/java/org/thingsboard/server/service/cloud/rpc/processor/TenantCloudProcessor.java index 198167c8ef..c1236e2e07 100644 --- a/application/src/main/java/org/thingsboard/server/service/cloud/rpc/processor/TenantCloudProcessor.java +++ b/application/src/main/java/org/thingsboard/server/service/cloud/rpc/processor/TenantCloudProcessor.java @@ -49,7 +49,7 @@ public void createTenantIfNotExists(TenantId tenantId, Long queueStartTs) throws tenant.setTitle("Tenant"); tenant.setId(tenantId); tenant.setCreatedTime(Uuids.unixTimestamp(tenantId.getId())); - Tenant savedTenant = tenantService.saveTenant(tenant, false, false); + Tenant savedTenant = tenantService.saveTenant(tenant, null, false); apiUsageStateService.createDefaultApiUsageState(savedTenant.getId(), null); requestForAdditionalData(tenantId, tenantId, queueStartTs).get(); @@ -68,7 +68,7 @@ public ListenableFuture processTenantMsgFromCloud(TenantUpdateMsg tenantUp switch (tenantUpdateMsg.getMsgType()) { case ENTITY_UPDATED_RPC_MESSAGE: - tenantService.saveTenant(tenant, true, false); + tenantService.saveTenant(tenant, null, false); break; case UNRECOGNIZED: return handleUnsupportedMsgType(tenantUpdateMsg.getMsgType());