From 02016abd3871f365e4cc0cd238964b0be3aee515 Mon Sep 17 00:00:00 2001 From: Jetsparrow Date: Tue, 17 May 2022 15:04:03 +0300 Subject: [PATCH] fix AdminInvites sql nad wrong links --- JetHerald/Services/DbContext.cs | 2 +- JetHerald/Views/AdminInvites/Index.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)