fix regression

This commit is contained in:
Hugo Renard 2022-04-29 23:30:09 +02:00
parent d646d2dc95
commit 4a2cdb5e86
Signed by: hougo
GPG key ID: 3A285FD470209C59

View file

@ -79,7 +79,7 @@ public class ScimClient {
var adapter = getAdapter(aClass);
adapter.apply(kcModel);
// If mapping exist then it was created by import so skip.
if (adapter.query("findById", adapter.getId()).getSingleResult() != null) {
if (adapter.query("findById", adapter.getId()).getResultList().size() != 0) {
return;
}
var retry = registry.retry("create-" + adapter.getId());