diff --git a/MedicBot/Controller/AudioController.cs b/MedicBot/Controller/AudioController.cs index f56c135..693bc0e 100644 --- a/MedicBot/Controller/AudioController.cs +++ b/MedicBot/Controller/AudioController.cs @@ -85,6 +85,8 @@ public async Task Play(ulong guildId, [FromQuery] string audioNam [Authorize] public IActionResult Get([FromQuery] bool? enriched) { + // TODO Use Manager instead of directly using repository + // TODO Sort results in API instead of doing it client-side try { if (enriched != null && enriched.Value) diff --git a/MedicBot/Manager/AudioManager.cs b/MedicBot/Manager/AudioManager.cs index cf31fe7..b6decac 100644 --- a/MedicBot/Manager/AudioManager.cs +++ b/MedicBot/Manager/AudioManager.cs @@ -141,6 +141,7 @@ public static async Task DeleteAsync(string audioName, ulong userId) public static async Task> FindAsync(string searchQuery, long limit = 10, DiscordGuild? guild = null) { + // TODO Sort results (check if needed first) string? tag = null; searchQuery = searchQuery.Trim(); if (searchQuery.Contains(':'))