@@ -41,7 +41,7 @@ public UserService(MongoUserRepository mongoUserRepository, MongoOperations mong
4141
4242 public User findBySourcedId (final String tenantId , final String orgId , final String userSourcedId ) throws UserNotFoundException {
4343
44- MongoUser mongoUser = mongoUserRepository .findByTenantIdAndOrgIdAndUserSourcedIdIgnoreCase (tenantId , orgId , userSourcedId );
44+ MongoUser mongoUser = mongoUserRepository .findByTenantIdAndOrgIdAndUserSourcedId (tenantId , orgId , userSourcedId );
4545 if (mongoUser == null ) {
4646 throw new UserNotFoundException ("User not found" );
4747 }
@@ -75,7 +75,7 @@ public boolean delete(final String tenantId, final String orgId, final String us
7575 if (StringUtils .isBlank (tenantId ) || StringUtils .isBlank (orgId ) || StringUtils .isBlank (userId ))
7676 throw new IllegalArgumentException ();
7777
78- return mongoUserRepository .deleteByTenantIdAndOrgIdAndUserSourcedIdIgnoreCase (tenantId , orgId , userId ) > 0 ;
78+ return mongoUserRepository .deleteByTenantIdAndOrgIdAndUserSourcedId (tenantId , orgId , userId ) > 0 ;
7979 }
8080
8181 /**
@@ -143,7 +143,7 @@ public User save(final String tenantId, final String orgId, User user, boolean c
143143 MongoUser mongoUserToSave , existingMongoUser = null ;
144144
145145 if (check )
146- existingMongoUser = mongoUserRepository .findByTenantIdAndOrgIdAndUserSourcedIdIgnoreCase (tenantId , orgId , user .getSourcedId ());
146+ existingMongoUser = mongoUserRepository .findByTenantIdAndOrgIdAndUserSourcedId (tenantId , orgId , user .getSourcedId ());
147147
148148 if (existingMongoUser == null ) {
149149 mongoUserToSave = new MongoUser .Builder ()
0 commit comments