mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 21:37:22 +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
|
|
@ -14,6 +14,8 @@ public partial class MareWizardModule
|
|||
{
|
||||
if (!(await ValidateInteraction().ConfigureAwait(false))) return;
|
||||
|
||||
_logger.LogInformation("{method}:{userId}", nameof(ComponentSecondary), Context.Interaction.User.Id);
|
||||
|
||||
using var mareDb = GetDbContext();
|
||||
var primaryUID = (await mareDb.LodeStoneAuth.Include(u => u.User).SingleAsync(u => u.DiscordId == Context.User.Id).ConfigureAwait(false)).User.UID;
|
||||
var secondaryUids = await mareDb.Auth.CountAsync(p => p.PrimaryUserUID == primaryUID).ConfigureAwait(false);
|
||||
|
|
@ -36,6 +38,8 @@ public partial class MareWizardModule
|
|||
{
|
||||
if (!(await ValidateInteraction().ConfigureAwait(false))) return;
|
||||
|
||||
_logger.LogInformation("{method}:{userId}:{primary}", nameof(ComponentSecondaryCreate), Context.Interaction.User.Id, primaryUid);
|
||||
|
||||
using var mareDb = GetDbContext();
|
||||
EmbedBuilder eb = new();
|
||||
eb.WithTitle("Secondary UID created");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue