fix: top up recommendation slots after adding an existing song
CI / chart (push) Successful in 3s
CI / test (push) Successful in 2m9s
CI / chart-push (push) Successful in 6s
CI / image (push) Failing after 6m8s

This commit is contained in:
TapTap committed 2026-11-15 21:45:12 +00:00
1 parent 824eb36dd2
commit de038deb58
1 file changed
+1
@@ -218,6 +218,7 @@ fun Route.moodRoutes(
if (existing != null) { if (existing != null) {
val added = MoodRepository.addSong(mood.id, existing.id, normalized.origin) val added = MoodRepository.addSong(mood.id, existing.id, normalized.origin)
val refreshed = MoodRepository.get(mood.id, user.name) ?: mood val refreshed = MoodRepository.get(mood.id, user.name) ?: mood
topUpService.trigger(refreshed)
call.respond( call.respond(
AddSongResponse( AddSongResponse(
detail = detail(refreshed), detail = detail(refreshed),