1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 13:08:17 -05:00

Reference Events Fixups (#1518)

* made salesAssistedTrialStarted nullable

* removed conditional logic surrounding directory sync events

* changed the value of the CipherCreated reference event enum
This commit is contained in:
Addison Beck 2021-08-17 13:12:55 -04:00 committed by GitHub
parent f241b34b22
commit 4645914383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -32,7 +32,7 @@ namespace Bit.Core.Enums
DirectorySynced,
[EnumMember(Value = "vault-imported")]
VaultImported,
[EnumMember(Value = "secret-added")]
[EnumMember(Value = "cipher-created")]
CipherCreated,
[EnumMember(Value = "group-created")]
GroupCreated,

View File

@ -60,6 +60,6 @@ namespace Bit.Core.Models.Business
public string EventRaisedByUser { get; set; }
public bool SalesAssistedTrialStarted { get; set; }
public bool? SalesAssistedTrialStarted { get; set; }
}
}

View File

@ -1981,11 +1981,8 @@ namespace Bit.Core.Services
}
}
if (_currentContext.ClientId == BitwardenClient.DirectoryConnector)
{
await _referenceEventService.RaiseEventAsync(
new ReferenceEvent(ReferenceEventType.DirectorySynced, organization));
}
await _referenceEventService.RaiseEventAsync(
new ReferenceEvent(ReferenceEventType.DirectorySynced, organization));
}
public async Task RotateApiKeyAsync(Organization organization)