diff --git a/internal/api/prelude.go b/internal/api/prelude.go index ec1edaa3..0fe0a64e 100644 --- a/internal/api/prelude.go +++ b/internal/api/prelude.go @@ -47,7 +47,7 @@ func checkNewPassword(w http.ResponseWriter, pw string) bool { // tests lower it, since each hash at the default cost takes most of a second // under the race detector, and check first that this default is at least // bcrypt's. -var passwordCost = bcrypt.DefaultCost - 2 // DELIBERATE BREAK +var passwordCost = bcrypt.DefaultCost // hashPassword is the one place a password is hashed for storage. func hashPassword(pw string) ([]byte, error) { diff --git a/internal/coverart/artist_enricher.go b/internal/coverart/artist_enricher.go index e38afd92..1a0b5738 100644 --- a/internal/coverart/artist_enricher.go +++ b/internal/coverart/artist_enricher.go @@ -49,7 +49,7 @@ func (e *Enricher) EnrichArtist(ctx context.Context, artistID pgtype.UUID, dataD case "theaudiodb": return nil case "none": - if row.ArtistArtSourcesVersion <= currentVersion { // DELIBERATE BREAK + if row.ArtistArtSourcesVersion == currentVersion { return nil } if err := q.ClearArtistArtNone(ctx, artistID); err != nil { @@ -127,7 +127,9 @@ func (e *Enricher) recordArtistArt(ctx context.Context, artistID pgtype.UUID, th if thumbPath != "" { thumbArg = &thumbPath } - fanartArg = &fanartPath // DELIBERATE BREAK + if fanartPath != "" { + fanartArg = &fanartPath + } return pgx.BeginFunc(ctx, e.pool, func(tx pgx.Tx) error { if err := dbq.New(tx).SetArtistArtWithVersion(ctx, dbq.SetArtistArtWithVersionParams{ ID: artistID,