Commit 2865247c authored by Wizkiller96's avatar Wizkiller96

Fixed 3 more broken queries

parent 413625b0
Pipeline #167071326 passed with stage
in 2 minutes and 10 seconds
......@@ -65,7 +65,7 @@ namespace WizBot.Core.Services.Database.Repositories.Impl
public int GetNextDiscrim(string clubName)
{
return _set.AsQueryable()
.Where(x => x.Name.ToUpperInvariant() == clubName.ToUpperInvariant())
.Where(x => x.Name.ToUpper() == clubName.ToUpper())
.Select(x => x.Discrim)
.DefaultIfEmpty()
.Max() + 1;
......
......@@ -25,7 +25,7 @@ namespace WizBot.Core.Services.Database.Repositories.Impl
public CustomReaction GetByGuildIdAndInput(ulong? guildId, string input)
{
return _set.FirstOrDefault(x => x.GuildId == guildId && x.Trigger.ToUpperInvariant() == input);
return _set.FirstOrDefault(x => x.GuildId == guildId && x.Trigger.ToUpper() == input);
}
/// <summary>
......
......@@ -49,7 +49,7 @@ namespace WizBot.Core.Services.Database.Repositories.Impl
public void RemoveAllByKeyword(ulong guildId, string keyword)
{
_set.RemoveRange(_set.AsQueryable().Where(x => x.GuildId == guildId && x.Keyword.ToUpperInvariant() == keyword));
_set.RemoveRange(_set.AsQueryable().Where(x => x.GuildId == guildId && x.Keyword.ToUpper() == keyword));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment