fix: don't try to register messages to redis if the redis connection isn't configured

This commit is contained in:
spiral 2022-07-17 00:30:05 +02:00
parent 5a6bf84af6
commit 62a57bc818
No known key found for this signature in database
GPG Key ID: 244A11E4B0BCF40E

View File

@ -20,6 +20,8 @@ public class CommandMessageService
public async Task RegisterMessage(ulong messageId, ulong channelId, ulong authorId)
{
if (_redis.Connection == null) return;
_logger.Debug(
"Registering command response {MessageId} from author {AuthorId} in {ChannelId}",
messageId, authorId, channelId