From 9b5e55421951573a97675654fb84ba683b68a026 Mon Sep 17 00:00:00 2001 From: Felipe Negri Date: Thu, 12 Oct 2023 18:40:43 -0300 Subject: [PATCH] Update SalaryTaskExecutor.cs --- SalaryPlugin/SalaryTaskExecutor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SalaryPlugin/SalaryTaskExecutor.cs b/SalaryPlugin/SalaryTaskExecutor.cs index 8ff5ec0..63663a1 100644 --- a/SalaryPlugin/SalaryTaskExecutor.cs +++ b/SalaryPlugin/SalaryTaskExecutor.cs @@ -38,7 +38,7 @@ public async Task ExecuteAsync(JobTask task) var (amount, roleId, message, online) = ParseArgs(task); var users = await _userDataStore.GetUsersDataAsync(KnownActorTypes.Player); - var salaryTasks = users.Where(u => u.Roles?.Contains(roleId) ?? false).Select(u => PaySalaryAsync(u, amount, message, online)); + var salaryTasks = users.Where(u => u.Roles?.Contains(roleId) ?? false).Select(u => PaySalaryAsync(u.Id!, u.Type!, amount, message, online)); await Task.WhenAll(salaryTasks); }