fixed deleting users

This commit is contained in:
Sarah Faey 2022-12-03 16:24:06 +01:00
parent 2246624917
commit 300ab2370f
10 changed files with 815 additions and 14 deletions

View file

@ -296,7 +296,7 @@
}
_raid.FreeForAllTimeUTC = await TimeZoneService.GetUTCDateTime(_freeForAllDate.Date + _freeForAllTime.TimeOfDay);
if (_raid.RaidOwnerId == 0)
if (!_raid.RaidOwnerId.HasValue)
{
_raid.RaidOwnerId = _user.Id;
}

View file

@ -320,7 +320,7 @@
}
_template.FreeForAllTime = _freeForAllDate.Date + _freeForAllTime.TimeOfDay;
if (_template.RaidOwnerId == 0)
if (!_template.RaidOwnerId.HasValue)
{
_template.RaidOwnerId = _user.Id;
}