Fix logs blowing up on Sqlite (#6093)

This commit is contained in:
wrexbe
2022-01-10 00:21:39 -08:00
committed by GitHub
parent 21046b5aa9
commit c0416aeaf8

View File

@@ -298,6 +298,11 @@ namespace Content.Server.Database
entity.Name = name;
logEntities.Add(entity);
}
foreach (var player in log.Players)
{
player.LogId = log.Id;
}
log.Entities = logEntities;
db.DbContext.AdminLog.Add(log);