mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Model refactor, part 2 (#4092)
* Move conversions into changesetTranslator * Improve mutation error messages * Use models.New and models.NewPartial everywhere * Replace getStashIDsFor functions * Remove ImageCreateInput * Remove unused parameters * Refactor matching functions --------- Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -152,10 +152,7 @@ func Test_imageQueryBuilder_Create(t *testing.T) {
|
||||
}
|
||||
}
|
||||
s := tt.newObject
|
||||
if err := qb.Create(ctx, &models.ImageCreateInput{
|
||||
Image: &s,
|
||||
FileIDs: fileIDs,
|
||||
}); (err != nil) != tt.wantErr {
|
||||
if err := qb.Create(ctx, &s, fileIDs); (err != nil) != tt.wantErr {
|
||||
t.Errorf("imageQueryBuilder.Create() error = %v, wantErr = %v", err, tt.wantErr)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user