Added Hangfire with LiteDB for a task running system. At the most basic, this allows us to monitor tasks running on the system (during dev only) and run tasks on a reoccuring or ad-hoc basis.

This commit is contained in:
Joseph Milazzo 2020-12-26 14:03:35 -06:00
parent e1c1719b6a
commit 4fd9943b91
22 changed files with 69 additions and 43 deletions

View file

@ -49,8 +49,6 @@ namespace API.Controllers
if (!result.Succeeded) return BadRequest(result.Errors);
// TODO: Need a way to store Roles in enum and configure from there
var role = registerDto.IsAdmin ? PolicyConstants.AdminRole : PolicyConstants.PlebRole;
var roleResult = await _userManager.AddToRoleAsync(user, role);