mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +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:
@@ -123,7 +123,7 @@ func (db *Database) IsLocked(err error) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (db *Database) TxnRepository() models.Repository {
|
||||
func (db *Database) Repository() models.Repository {
|
||||
return models.Repository{
|
||||
TxnManager: db,
|
||||
File: db.File,
|
||||
|
||||
Reference in New Issue
Block a user