Skip to content

Commit 1a0cc14

Browse files
Merge pull request #81 from nullinside-development-group/feat/9.0
fix: fix bug introduced in latest version of ef core package
2 parents ee1ce11 + 4617439 commit 1a0cc14

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/Nullinside.Api.TwitchBot/ChatRules/TwitchChatMessageMonitorConsumer.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -127,15 +127,15 @@ private async void MainLoop() {
127127
}
128128

129129
// We need the user's configuration to check which rules to run.
130-
User? user = _db.Users
131-
.Include(u => u.TwitchConfig)
132-
.FirstOrDefault(u =>
133-
!u.IsBanned &&
134-
null != u.TwitchConfig &&
135-
u.TwitchConfig.Enabled &&
136-
string.Equals(u.TwitchUsername, message.Channel, StringComparison.InvariantCultureIgnoreCase)
137-
);
138-
130+
User? user = _db.Users
131+
.Include(u => u.TwitchConfig)
132+
.FirstOrDefault(u =>
133+
!u.IsBanned &&
134+
null != u.TwitchConfig &&
135+
u.TwitchConfig.Enabled &&
136+
u.TwitchUsername == message.Channel
137+
);
138+
139139
if (null == user?.TwitchConfig || null == user.TwitchId) {
140140
continue;
141141
}

0 commit comments

Comments
 (0)