Skip to content

Commit

Permalink
Add TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
cankaratepe23 committed Sep 12, 2024
1 parent 85541c7 commit 07963dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions MedicBot/Controller/AudioController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ public async Task<IActionResult> 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)
Expand Down
1 change: 1 addition & 0 deletions MedicBot/Manager/AudioManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public static async Task DeleteAsync(string audioName, ulong userId)

public static async Task<IEnumerable<AudioTrack>> 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(':'))
Expand Down

0 comments on commit 07963dc

Please sign in to comment.