add more logging to mare wizard module

This commit is contained in:
rootdarkarchon
2023-10-12 17:11:39 +02:00
parent fee84aa1ff
commit 2f1b1f4b27
9 changed files with 68 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ using MareSynchronosShared.Models;
using MareSynchronosShared.Services;
using MareSynchronosShared.Utils;
using Microsoft.EntityFrameworkCore;
using Microsoft.Win32;
using StackExchange.Redis;
using System.Text.RegularExpressions;
@@ -40,6 +41,8 @@ public partial class MareWizardModule : InteractionModuleBase
{
if (!init && !(await ValidateInteraction().ConfigureAwait(false))) return;
_logger.LogInformation("{method}:{userId}", nameof(StartWizard), Context.Interaction.User.Id);
using var mareDb = GetDbContext();
bool hasAccount = await mareDb.LodeStoneAuth.AnyAsync(u => u.DiscordId == Context.User.Id && u.StartedAt == null).ConfigureAwait(false);