mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
SQLite model refactoring (#3791)
* Remove ID from PerformerPartial * Separate studio model from sqlite model * Separate movie model from sqlite model * Separate tag model from sqlite model * Separate saved filter model from sqlite model * Separate scene marker model from sqlite model * Separate gallery chapter model from sqlite model * Move ErrNoRows checks into sqlite, improve empty result error messages * Move SQLiteDate and SQLiteTimestamp to sqlite * Use changesetTranslator everywhere, refactor for consistency * Make PerformerStore.DestroyImage private * Fix rating on movie create
This commit is contained in:
@@ -72,11 +72,11 @@ func (j *IdentifyJob) Execute(ctx context.Context, progress *job.Progress) {
|
||||
var err error
|
||||
scene, err := instance.Repository.Scene.Find(ctx, id)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error finding scene with id %d: %w", id, err)
|
||||
return fmt.Errorf("finding scene id %d: %w", id, err)
|
||||
}
|
||||
|
||||
if scene == nil {
|
||||
return fmt.Errorf("%w: scene with id %d", models.ErrNotFound, id)
|
||||
return fmt.Errorf("scene with id %d not found", id)
|
||||
}
|
||||
|
||||
j.identifyScene(ctx, scene, sources)
|
||||
|
||||
Reference in New Issue
Block a user