This commit is contained in:
Дмитрий Шиманский
2023-11-09 00:24:18 +03:00
parent 0b218a4c6d
commit dde8b38520
16 changed files with 243 additions and 40 deletions

View File

@@ -98,13 +98,14 @@ namespace DiscordApp.Discord.Commands
}
}
Startup startup = new();
foreach (var employee in allEmployee)
{
try
{
Startup startup = new ();
await Startup.sp.CreateTransaction(startup.getUserData(employee.Key).Result.cardsOwned.First().number, employee.Value, $"zp {employee.Key}");
var userData = await startup.getUserData(employee.Key);
await Startup.sp.CreateTransaction(userData.cardsOwned.First().number, employee.Value, $"zp {employee.Key}");
await Console.Out.WriteLineAsync($"{employee.Key}, {employee.Value}");
allCount += employee.Value;
}