Allow searching by creator username and slot id

This commit is contained in:
jvyden 2021-10-19 19:43:04 -04:00
commit a459ef2302
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -31,7 +31,9 @@ namespace ProjectLighthouse.Controllers {
foreach(string keyword in keywords) { foreach(string keyword in keywords) {
dbQuery = dbQuery.Where(s => dbQuery = dbQuery.Where(s =>
s.Name.ToLower().Contains(keyword) || s.Name.ToLower().Contains(keyword) ||
s.Description.ToLower().Contains(keyword) s.Description.ToLower().Contains(keyword) ||
s.Creator.Username.ToLower().Contains(keyword) ||
s.SlotId.ToString().Equals(keyword)
); );
} }