Skip to content

Commit

Permalink
fix(backend): include necessary deps for using repoManager service
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Nov 2, 2024
1 parent e39d4ad commit 77bb61c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/builder/builder.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ import { Build, Builder, Package, Repo } from "./builder.entity";
import { BuilderService } from "./builder.service";
import { RepoManagerModule } from "../repo-manager/repo-manager.module";
import { RepoManagerService } from "../repo-manager/repo-manager.service";
import { HttpModule } from "@nestjs/axios";
import { ArchlinuxPackage, RepoManagerSettings } from "../repo-manager/repo-manager.entity";

@Module({
controllers: [BuilderController],
exports: [TypeOrmModule],
imports: [
ConfigModule.forFeature(builderConfig),
HttpModule,
RepoManagerModule,
TypeOrmModule.forFeature([Builder, Build, Repo, Package]),
TypeOrmModule.forFeature([Builder, Build, Repo, Package, ArchlinuxPackage, RepoManagerSettings]),
],
providers: [BuilderService, RepoManagerService],
})
Expand Down
1 change: 1 addition & 0 deletions backend/src/builder/builder.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export class BuilderDatabaseService extends Service {
...MoleculerConfigCommonService,
});

this.repoManagerService = repoManagerService;
this.dbConnections = dbConnections;
Logger.log("BuilderDatabaseService created", "BuilderDatabaseService");
}
Expand Down

0 comments on commit 77bb61c

Please sign in to comment.