update dependencies

This commit is contained in:
MHSanaei
2026-03-04 13:05:29 +01:00
parent 874aae8080
commit 5740996436
6 changed files with 56 additions and 58 deletions
+1 -4
View File
@@ -271,10 +271,7 @@ func (j *LdapSyncJob) deleteClientsNotInLDAP(inboundTag string, ldapEmails map[s
// Delete in batches
for i := 0; i < len(toDelete); i += batchSize {
end := i + batchSize
if end > len(toDelete) {
end = len(toDelete)
}
end := min(i+batchSize, len(toDelete))
batch := toDelete[i:end]
for _, c := range batch {