post services integrations
This commit is contained in:
@@ -24,8 +24,7 @@ mod user;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct RepositoryContext {
|
||||
db: DatabaseConnection,
|
||||
events: Arc<EventBus>,
|
||||
pub db: DatabaseConnection,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
@@ -41,8 +40,8 @@ pub struct Repositories {
|
||||
}
|
||||
|
||||
impl Repositories {
|
||||
pub fn new(db: DatabaseConnection, events: Arc<EventBus>) -> Self {
|
||||
let context = Arc::new(RepositoryContext { db, events });
|
||||
pub fn new(db: DatabaseConnection) -> Self {
|
||||
let context = Arc::new(RepositoryContext { db });
|
||||
|
||||
Self {
|
||||
server: ServerRepository {
|
||||
|
||||
Reference in New Issue
Block a user