Skip to content

Commit

Permalink
feat: Add temporary type assertion for UpdateGallery
Browse files Browse the repository at this point in the history
  • Loading branch information
CrescentKohana committed Apr 7, 2022
1 parent 3caeca2 commit 4a05722
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/metadata/title.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ func ParseTitles(tryNative bool, overwrite bool) {
gallery.Category = &manga
}

err = db.UpdateGallery(gallery, currentTags, currentReference, true)
// FIXME: Remove the type assertion after UpdateGallery is reworked.
err = db.UpdateGallery(model.Gallery(gallery), currentTags, currentReference, true)
if err != nil {
log.Errorf("Error updating gallery %s based on its title: %s", gallery.UUID, err)
}
Expand Down

0 comments on commit 4a05722

Please sign in to comment.