fix: prevent updated_at bump for completed anime
This commit is contained in:
@@ -50,6 +50,10 @@ func (s *Service) SaveProgress(ctx context.Context, userID string, animeID int64
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if isCompleted {
|
||||||
|
return tx.Commit()
|
||||||
|
}
|
||||||
|
|
||||||
var durationSeconds sql.NullFloat64
|
var durationSeconds sql.NullFloat64
|
||||||
if animeSeed != nil {
|
if animeSeed != nil {
|
||||||
durationSeconds = animeSeed.DurationSeconds
|
durationSeconds = animeSeed.DurationSeconds
|
||||||
|
|||||||
Reference in New Issue
Block a user