mirror of
https://github.com/bitwarden/server
synced 2025-12-16 08:13:33 +00: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