Skip to content

Commit

Permalink
Update SalaryTaskExecutor.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
negrifelipe committed Oct 12, 2023
1 parent f984ee5 commit 9b5e554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SalaryPlugin/SalaryTaskExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9b5e554

Please sign in to comment.