Removed useless indexes

This commit is contained in:
emeric
2025-07-18 23:59:23 +02:00
parent f51ceb933e
commit 1236969516
3 changed files with 4 additions and 10 deletions
@@ -207,9 +207,9 @@ namespace lms::api::subsonic
auto transaction{ context.dbSession.createReadTransaction() };
db::Track::FindParameters params;
params.name = titleName;
params.artistName = artistName;
params.range = Range{ 0, 2 };
params.setName(titleName);
params.setArtistName(artistName);
params.setRange(db::Range{ .offset = 0, .size = 2 });
// Choice: we return nothing if there are too many results
const auto tracks{ db::Track::findIds(context.dbSession, params) };