diff --git a/JetHerald/Services/DbContext.cs b/JetHerald/Services/DbContext.cs index fc8ecb4..3ed3b93 100644 --- a/JetHerald/Services/DbContext.cs +++ b/JetHerald/Services/DbContext.cs @@ -75,7 +75,7 @@ public class DbContext : IDisposable new { planId, roleId, inviteCode }); public Task DeleteUserInvite(uint inviteId) - => Tran.ExecuteAsync(@" DELETE FROM userinvite WHERE UserInviteId = @intiteId", + => Tran.ExecuteAsync(@" DELETE FROM userinvite WHERE UserInviteId = @inviteId", new { inviteId }); diff --git a/JetHerald/Views/AdminInvites/Index.cshtml b/JetHerald/Views/AdminInvites/Index.cshtml index d00c5a7..d8cd665 100644 --- a/JetHerald/Views/AdminInvites/Index.cshtml +++ b/JetHerald/Views/AdminInvites/Index.cshtml @@ -26,7 +26,7 @@ {
  • @invite.InviteCode.Substring(0, 12)... r:(@Model.Roles[invite.RoleId].Name) p:(@Model.Plans[invite.PlanId].Name) -
    +
    @if (invite.RedeemedBy == default)