Import missing artist portraits from uploaded album folders
ci / module boundaries / boundaries (push) Successful in 6s
ci / contract / contract (сгенерированный код совпадает с openapi.yaml) (push) Successful in 2m1s
ci / ts / ts (packages + web) (push) Failing after 5m13s
ci / api / api (push) Successful in 41s
ci / db / db (push) Failing after 1m33s
ci / mobile / mobile (Metro-бандл Android) (push) Successful in 2m25s
ci / docker / docker (образы собираются — их сервер собирает сам при обновлении) (push) Successful in 2m19s

This commit is contained in:
mrleo1nid committed 2026-10-30 10:46:07 +03:00
1 parent fd17c06397
commit 82bf015283
23 files changed
+829 -317

No files matched your search

+9
View File
@@ -334,6 +334,15 @@ func (s *Service) importFile(ctx context.Context, f File) error {
if err != nil {
return fmt.Errorf("scan: %w", err)
}
if f.ArtistImagePath != nil && s.artistImages != nil {
image, err := os.ReadFile(s.stagingAbs(*f.ArtistImagePath))
if err != nil {
return fmt.Errorf("read artist image: %w", err)
}
if err := s.artistImages.ApplyArtistImage(ctx, fileID, image); err != nil {
return fmt.Errorf("artist image: %w", err)
}
}
if err := s.store.CompleteImport(ctx, f.ID, pl.src.ID, rel, fileID); err != nil {
return err
}