possible audit log fix
This commit is contained in:
@@ -73,8 +73,11 @@ public class AuditLogService
|
||||
{
|
||||
private List<LogData> Data = new List<LogData>();
|
||||
|
||||
public void Add<T>(object data)
|
||||
public void Add<T>(object? data)
|
||||
{
|
||||
if(data == null)
|
||||
return;
|
||||
|
||||
Data.Add(new LogData()
|
||||
{
|
||||
Type = typeof(T),
|
||||
|
||||
@@ -98,8 +98,11 @@ public class ErrorLogService
|
||||
{
|
||||
private List<LogData> Data = new List<LogData>();
|
||||
|
||||
public void Add<T>(object data)
|
||||
public void Add<T>(object? data)
|
||||
{
|
||||
if(data == null)
|
||||
return;
|
||||
|
||||
Data.Add(new LogData()
|
||||
{
|
||||
Type = typeof(T),
|
||||
|
||||
@@ -72,8 +72,11 @@ public class SecurityLogService
|
||||
{
|
||||
private List<LogData> Data = new List<LogData>();
|
||||
|
||||
public void Add<T>(object data)
|
||||
public void Add<T>(object? data)
|
||||
{
|
||||
if(data == null)
|
||||
return;
|
||||
|
||||
Data.Add(new LogData()
|
||||
{
|
||||
Type = typeof(T),
|
||||
|
||||
Reference in New Issue
Block a user