Fix a remaining direct usage of transaction factory in the data model.
This commit is contained in:
parent
5fdccfe3e6
commit
553ef36e9b
1 changed files with 1 additions and 1 deletions
|
@ -1076,7 +1076,7 @@ def list_repository_tags(namespace_name, repository_name):
|
|||
|
||||
|
||||
def garbage_collect_repository(namespace_name, repository_name):
|
||||
with transaction_factory(db):
|
||||
with config.app_config['DB_TRANSACTION_FACTORY'](db):
|
||||
# Get a list of all images used by tags in the repository
|
||||
tag_query = (RepositoryTag
|
||||
.select(RepositoryTag, Image, ImageStorage)
|
||||
|
|
Reference in a new issue