@@ -6,6 +6,7 @@ use crate::config::Configuration;
66use crate :: databases:: database:: Database ;
77use crate :: services:: authentication:: { DbUserAuthenticationRepository , JsonWebToken , Service } ;
88use crate :: services:: category:: { self , DbCategoryRepository } ;
9+ use crate :: services:: tag:: { self , DbTagRepository } ;
910use crate :: services:: torrent:: {
1011 DbTorrentAnnounceUrlRepository , DbTorrentFileRepository , DbTorrentInfoRepository , DbTorrentListingGenerator ,
1112 DbTorrentRepository , DbTorrentTagRepository ,
@@ -30,6 +31,7 @@ pub struct AppData {
3031 pub image_cache_manager : Arc < ImageCacheService > ,
3132 // Repositories
3233 pub category_repository : Arc < DbCategoryRepository > ,
34+ pub tag_repository : Arc < DbTagRepository > ,
3335 pub user_repository : Arc < DbUserRepository > ,
3436 pub user_authentication_repository : Arc < DbUserAuthenticationRepository > ,
3537 pub user_profile_repository : Arc < DbUserProfileRepository > ,
@@ -42,6 +44,7 @@ pub struct AppData {
4244 pub banned_user_list : Arc < DbBannedUserList > ,
4345 // Services
4446 pub category_service : Arc < category:: Service > ,
47+ pub tag_service : Arc < tag:: Service > ,
4548 pub proxy_service : Arc < proxy:: Service > ,
4649 pub settings_service : Arc < settings:: Service > ,
4750 pub torrent_service : Arc < torrent:: Index > ,
@@ -63,6 +66,7 @@ impl AppData {
6366 image_cache_manager : Arc < ImageCacheService > ,
6467 // Repositories
6568 category_repository : Arc < DbCategoryRepository > ,
69+ tag_repository : Arc < DbTagRepository > ,
6670 user_repository : Arc < DbUserRepository > ,
6771 user_authentication_repository : Arc < DbUserAuthenticationRepository > ,
6872 user_profile_repository : Arc < DbUserProfileRepository > ,
@@ -75,6 +79,7 @@ impl AppData {
7579 banned_user_list : Arc < DbBannedUserList > ,
7680 // Services
7781 category_service : Arc < category:: Service > ,
82+ tag_service : Arc < tag:: Service > ,
7883 proxy_service : Arc < proxy:: Service > ,
7984 settings_service : Arc < settings:: Service > ,
8085 torrent_service : Arc < torrent:: Index > ,
@@ -93,6 +98,7 @@ impl AppData {
9398 image_cache_manager,
9499 // Repositories
95100 category_repository,
101+ tag_repository,
96102 user_repository,
97103 user_authentication_repository,
98104 user_profile_repository,
@@ -105,6 +111,7 @@ impl AppData {
105111 banned_user_list,
106112 // Services
107113 category_service,
114+ tag_service,
108115 proxy_service,
109116 settings_service,
110117 torrent_service,
0 commit comments