Skip to content
Snippets Groups Projects
Commit cfef2bc7 authored by Alok Joshi's avatar Alok Joshi
Browse files

use createItem instead of upsertItem for create api

parent 243e5996
No related branches found
No related tags found
1 merge request!74use createItem instead of upsertItem for create api
Pipeline #14257 failed
...@@ -65,7 +65,7 @@ public class LegalTagRepositoryImpl implements ILegalTagRepository { ...@@ -65,7 +65,7 @@ public class LegalTagRepositoryImpl implements ILegalTagRepository {
if (existingDoc.isPresent()) { if (existingDoc.isPresent()) {
throw AppException.legalTagAlreadyExistsError(legalTag.getName()); throw AppException.legalTagAlreadyExistsError(legalTag.getName());
} }
cosmosStore.upsertItem(headers.getPartitionId(), cosmosDBName, legalTagsContainer, legalTagDoc); cosmosStore.createItem(headers.getPartitionId(), cosmosDBName, legalTagsContainer, legalTagDoc);
} finally { } finally {
mutex.unlock(); mutex.unlock();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment