1
0
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:
Kyle Spearrin
2017-05-13 12:00:40 -04:00
parent 5d595d4cf9
commit 0333b47237
6 changed files with 160 additions and 4 deletions

View File

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