Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SebiWrn committed Apr 29, 2024
1 parent ee3f926 commit f037c11
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dao/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func filterProgress(progresses []model.StreamProgress, watched bool) []model.Str
}

// SaveProgresses saves a slice of stream progresses. If a progress already exists, it will be updated.
// We need two different methods for that because else the watched state will be overwritten.
func (d progressDao) SaveProgresses(progresses []model.StreamProgress) error {
noWatched := filterProgress(progresses, false)
watched := filterProgress(progresses, true)
Expand Down

0 comments on commit f037c11

Please sign in to comment.