1
0
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:
Thomas Rittson
2021-03-30 12:37:48 +10:00
parent 8893ddf0f7
commit 090d5e82df

View File

@@ -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);
}