1
0
mirror of https://github.com/bitwarden/server synced 2025-12-26 13:13:24 +00:00

EF repo fixes

This commit is contained in:
Kyle Spearrin
2020-01-10 18:14:45 -05:00
parent fa1322599f
commit d653629e79
2 changed files with 1 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ namespace Bit.Core.Repositories.EntityFramework
var entity = Mapper.Map<TEntity>(obj);
dbContext.Add(entity);
await dbContext.SaveChangesAsync();
obj.Id = entity.Id;
}
}