feat(bootstrap): inject TagRepository into ThoughtsObjectHandler
This commit is contained in:
@@ -77,6 +77,7 @@ pub async fn build(cfg: &Config) -> Infrastructure {
|
|||||||
Arc::new(PgActivityPubRepository::new(pool.clone())),
|
Arc::new(PgActivityPubRepository::new(pool.clone())),
|
||||||
&cfg.base_url,
|
&cfg.base_url,
|
||||||
Some(event_publisher.clone()),
|
Some(event_publisher.clone()),
|
||||||
|
Arc::new(postgres::tag::PgTagRepository::new(pool.clone())),
|
||||||
)),
|
)),
|
||||||
cfg.base_url.clone(),
|
cfg.base_url.clone(),
|
||||||
cfg.allow_registration,
|
cfg.allow_registration,
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ pub async fn build(database_url: &str, base_url: &str, nats_url: &str) -> Worker
|
|||||||
Arc::new(PgActivityPubRepository::new(pool.clone())),
|
Arc::new(PgActivityPubRepository::new(pool.clone())),
|
||||||
base_url,
|
base_url,
|
||||||
None,
|
None,
|
||||||
|
Arc::new(postgres::tag::PgTagRepository::new(pool.clone())),
|
||||||
)),
|
)),
|
||||||
base_url.to_string(),
|
base_url.to_string(),
|
||||||
false,
|
false,
|
||||||
|
|||||||
Reference in New Issue
Block a user