Skip to content

Commit

Permalink
chore(api): fetch only the hitcount when checking existing resources...
Browse files Browse the repository at this point in the history
...with same oid value
  • Loading branch information
cmark committed Aug 18, 2022
1 parent 70fcc16 commit 9165d40
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ private boolean updateOid(TransactionContext context, String oldOid, Builder upd

if (!oid.isBlank()) {
final boolean oidExist = ResourceRequests.prepareSearch()
.setLimit(0)
.filterByOid(oid)
.build()
.execute(context)
Expand Down

0 comments on commit 9165d40

Please sign in to comment.