mirror of
https://github.com/bitwarden/directory-connector
synced 2026-01-20 09:23:25 +00:00
Send empty sync to server if overwriteExisting
This commit is contained in:
@@ -57,7 +57,8 @@ export class SyncService {
|
||||
this.flattenUsersToGroups(groups, groups);
|
||||
}
|
||||
|
||||
if (test || ((groups == null || groups.length === 0) && (users == null || users.length === 0))) {
|
||||
if (test || (!syncConfig.overwriteExisting &&
|
||||
(groups == null || groups.length === 0) && (users == null || users.length === 0))) {
|
||||
if (!test) {
|
||||
await this.saveSyncTimes(syncConfig, now);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user