mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:07:23 +01:00
add more logging to mare wizard module
This commit is contained in:
parent
fee84aa1ff
commit
2f1b1f4b27
9 changed files with 68 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue