mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Clean up a few database pool uses
This commit is contained in:
parent
13260a4b0e
commit
9bbe9df16d
5 changed files with 29 additions and 25 deletions
|
|
@ -31,7 +31,7 @@ namespace PluralKit.Bot
|
|||
await _db.Execute(conn => _repo.SaveCommandMessage(conn, messageId, authorId));
|
||||
}
|
||||
|
||||
public async Task<CommandMessage> GetCommandMessage(IPKConnection conn, ulong messageId)
|
||||
public async Task<CommandMessage?> GetCommandMessage(IPKConnection conn, ulong messageId)
|
||||
{
|
||||
return await _repo.GetCommandMessage(conn, messageId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue