diff --git a/data/model/legacy.py b/data/model/legacy.py index 23b1bde77..88189ab3a 100644 --- a/data/model/legacy.py +++ b/data/model/legacy.py @@ -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)