MCPcopy Create free account
hub / github.com/dzcode-io/dzcode.io / constructor

Method constructor

api/src/team/repository.ts:12–19  ·  view source on GitHub ↗
(private readonly githubService: GithubService)

Source from the content-addressed store, hash-verified

10@Service()
11export class TeamRepository {
12 constructor(private readonly githubService: GithubService) {
13 const projects = getCollection<Model<ProjectReferenceEntity, "repositories">>(
14 join(__dirname, "../../../data"),
15 "projects-v2",
16 "list.json",
17 );
18 this.projects = projects !== 404 ? projects : [];
19 }
20
21 private projects: Model<ProjectReferenceEntity, "repositories">[];
22

Callers

nothing calls this directly

Calls 1

getCollectionFunction · 0.90

Tested by

no test coverage detected