mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 21:16:49 +00:00
feat: split out messages table from main database
This commit is contained in:
parent
09ac002d26
commit
bf7747ab34
14 changed files with 119 additions and 84 deletions
|
|
@ -92,7 +92,7 @@ public class DiscordControllerV2: PKControllerBase
|
|||
[HttpGet("messages/{messageId}")]
|
||||
public async Task<ActionResult<JObject>> MessageGet(ulong messageId)
|
||||
{
|
||||
var msg = await _db.Execute(c => _repo.GetMessage(c, messageId));
|
||||
var msg = await _repo.GetFullMessage(messageId);
|
||||
if (msg == null)
|
||||
throw Errors.MessageNotFound;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue