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
|
|
@ -10,7 +10,7 @@ namespace PluralKit.Core
|
|||
conn.QueryAsync("insert into command_messages (message_id, author_id) values (@Message, @Author)",
|
||||
new { Message = messageId, Author = authorId });
|
||||
|
||||
public Task<CommandMessage> GetCommandMessage(IPKConnection conn, ulong messageId) =>
|
||||
public Task<CommandMessage?> GetCommandMessage(IPKConnection conn, ulong messageId) =>
|
||||
conn.QuerySingleOrDefaultAsync<CommandMessage>("select * from command_messages where message_id = @Message",
|
||||
new { Message = messageId });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue