mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Converted many raw sql queries to their linq2db equivalents
This commit is contained in:
@@ -78,8 +78,6 @@ public class RemindService : INService
|
||||
.ToLinqToDBTable()
|
||||
.Where(x => x.ServerId / 4194304 % (ulong)_creds.TotalShards == (ulong)_client.ShardId
|
||||
&& x.When < now)
|
||||
// .FromSqlInterpolated(
|
||||
// $"select * from reminders where ((serverid >> 22) % {_creds.TotalShards}) == {_client.ShardId} and \"when\" < {now};")
|
||||
.ToListAsyncLinqToDB();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user