Meta - Update Nuget packages

Profiles - Fixed duplicating & importing
This commit is contained in:
Robert committed 2021-06-19 16:25:25 +02:00
1 parent dd8827e186
commit 8c729055ea
13 files changed
+107 -211

No files matched your search

@@ -532,8 +532,10 @@ namespace Artemis.Core.Services
if (markAsFreshImport)
profileEntity.IsFreshImport = true;
if (!makeUnique && _profileRepository.Get(profileEntity.Id) == null)
if (_profileRepository.Get(profileEntity.Id) != null)
_profileRepository.Add(profileEntity);
else
throw new ArtemisCoreException($"Cannot import this profile without {nameof(makeUnique)} being true");
ProfileConfiguration profileConfiguration;
if (exportModel.ProfileConfigurationEntity != null)