mirror of
https://github.com/bitwarden/server.git
synced 2025-04-08 06:28:14 -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:
parent
f241b34b22
commit
4645914383
@ -32,7 +32,7 @@ namespace Bit.Core.Enums
|
|||||||
DirectorySynced,
|
DirectorySynced,
|
||||||
[EnumMember(Value = "vault-imported")]
|
[EnumMember(Value = "vault-imported")]
|
||||||
VaultImported,
|
VaultImported,
|
||||||
[EnumMember(Value = "secret-added")]
|
[EnumMember(Value = "cipher-created")]
|
||||||
CipherCreated,
|
CipherCreated,
|
||||||
[EnumMember(Value = "group-created")]
|
[EnumMember(Value = "group-created")]
|
||||||
GroupCreated,
|
GroupCreated,
|
||||||
|
@ -60,6 +60,6 @@ namespace Bit.Core.Models.Business
|
|||||||
|
|
||||||
public string EventRaisedByUser { get; set; }
|
public string EventRaisedByUser { get; set; }
|
||||||
|
|
||||||
public bool SalesAssistedTrialStarted { get; set; }
|
public bool? SalesAssistedTrialStarted { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1981,12 +1981,9 @@ namespace Bit.Core.Services
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_currentContext.ClientId == BitwardenClient.DirectoryConnector)
|
|
||||||
{
|
|
||||||
await _referenceEventService.RaiseEventAsync(
|
await _referenceEventService.RaiseEventAsync(
|
||||||
new ReferenceEvent(ReferenceEventType.DirectorySynced, organization));
|
new ReferenceEvent(ReferenceEventType.DirectorySynced, organization));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public async Task RotateApiKeyAsync(Organization organization)
|
public async Task RotateApiKeyAsync(Organization organization)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user