feat: split out messages table from main database

This commit is contained in:
spiral 2022-11-23 09:17:19 +00:00
parent 09ac002d26
commit bf7747ab34
No known key found for this signature in database
GPG key ID: 244A11E4B0BCF40E
14 changed files with 119 additions and 84 deletions

View file

@ -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;