From 975775ed9cb85bb1ee0d30ee5feacf3080e73684 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 5 Nov 2021 23:30:18 +0000 Subject: [PATCH] --- server/AyaNova/Controllers/ScheduleController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/AyaNova/Controllers/ScheduleController.cs b/server/AyaNova/Controllers/ScheduleController.cs index 6bac6b72..1944d545 100644 --- a/server/AyaNova/Controllers/ScheduleController.cs +++ b/server/AyaNova/Controllers/ScheduleController.cs @@ -91,7 +91,7 @@ namespace AyaNova.Api.Controllers Users = new List(); //add users that match any of the tags, to match they must have at least one of the tags //iterate available users - var availableUsers = await ct.User.AsNoTracking().Where(x => x.Active == true && x.UserType == UserType.ServiceContractor || x.UserType == UserType.Service).OrderBy(x => x.Name).Select(x => new { x.Name, x.Id, x.Tags }).ToListAsync(); + var availableUsers = await ct.User.AsNoTracking().Where(x => x.Active == true && (x.UserType == UserType.ServiceContractor || x.UserType == UserType.Service)).OrderBy(x => x.Name).Select(x => new { x.Name, x.Id, x.Tags }).ToListAsync(); //if user has any of the tags in the list then include them foreach (var u in availableUsers) {