src/star/star.module.ts
import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { DbRepoWithStats } from "../repo/entities/repo.entity";
import { DbRepoToUserStars } from "../repo/entities/repo.to.user.stars.entity";
import { RepoModule } from "../repo/repo.module";
import { StarService } from "./star.service";
import { RepoStarController } from "./repo-star.controller";
@Module({
imports: [TypeOrmModule.forFeature([DbRepoWithStats, DbRepoToUserStars], "ApiConnection"), RepoModule],
controllers: [RepoStarController],
providers: [StarService],
exports: [StarService],
})
export class StarModule {}