Merge pull request #7676 from YevhenBondarenko/fix/version-control
[3.4.2] fixed import assets with the same type without assetProfileId
This commit is contained in:
commit
143fcd83e6
@ -95,7 +95,7 @@ public class AssetProfileServiceImpl extends AbstractCachedEntityService<AssetPr
|
|||||||
log.trace("Executing findAssetProfileByName [{}][{}]", tenantId, profileName);
|
log.trace("Executing findAssetProfileByName [{}][{}]", tenantId, profileName);
|
||||||
Validator.validateString(profileName, INCORRECT_ASSET_PROFILE_NAME + profileName);
|
Validator.validateString(profileName, INCORRECT_ASSET_PROFILE_NAME + profileName);
|
||||||
return cache.getAndPutInTransaction(AssetProfileCacheKey.fromName(tenantId, profileName),
|
return cache.getAndPutInTransaction(AssetProfileCacheKey.fromName(tenantId, profileName),
|
||||||
() -> assetProfileDao.findByName(tenantId, profileName), true);
|
() -> assetProfileDao.findByName(tenantId, profileName), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user