Fix function name in comment (#2947)

Signed-off-by: looklose <shishuaiqun@yeah.net>
This commit is contained in:
looklose 2024-04-11 00:53:21 +08:00 committed by GitHub
parent 6e36abdd62
commit 22cc9e0cd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ func (r *playlistRepository) addTracks(playlistId string, startingPos int, media
return r.refreshCounters(&model.Playlist{ID: playlistId})
}
// RefreshStatus updates total playlist duration, size and count
// refreshCounters updates total playlist duration, size and count
func (r *playlistRepository) refreshCounters(pls *model.Playlist) error {
statsSql := Select(
"coalesce(sum(duration), 0) as duration",