mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Model refactor, part 3 (#4152)
* Remove manager.Repository * Refactor other repositories * Fix tests and add database mock * Add AssertExpectations method * Refactor routes * Move default movie image to internal/static and add convenience methods * Refactor default performer image boxes
This commit is contained in:
@@ -1176,7 +1176,7 @@ func makeImage(i int) *models.Image {
|
||||
}
|
||||
|
||||
func createImages(ctx context.Context, n int) error {
|
||||
qb := db.TxnRepository().Image
|
||||
qb := db.Image
|
||||
fqb := db.File
|
||||
|
||||
for i := 0; i < n; i++ {
|
||||
@@ -1273,7 +1273,7 @@ func makeGallery(i int, includeScenes bool) *models.Gallery {
|
||||
}
|
||||
|
||||
func createGalleries(ctx context.Context, n int) error {
|
||||
gqb := db.TxnRepository().Gallery
|
||||
gqb := db.Gallery
|
||||
fqb := db.File
|
||||
|
||||
for i := 0; i < n; i++ {
|
||||
|
||||
Reference in New Issue
Block a user