mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 00:52:49 -05:00
import groups and users for org via api
This commit is contained in:
@ -36,6 +36,8 @@ namespace Bit.Core.Services
|
||||
|
||||
if(group.Id == default(Guid))
|
||||
{
|
||||
group.CreationDate = group.RevisionDate = DateTime.UtcNow;
|
||||
|
||||
if(collections == null)
|
||||
{
|
||||
await _groupRepository.CreateAsync(group);
|
||||
@ -47,6 +49,8 @@ namespace Bit.Core.Services
|
||||
}
|
||||
else
|
||||
{
|
||||
group.RevisionDate = DateTime.UtcNow;
|
||||
|
||||
if(collections == null)
|
||||
{
|
||||
await _groupRepository.ReplaceAsync(group);
|
||||
|
Reference in New Issue
Block a user