Skip to content

Commit

Permalink
fix(backend): don't show all repo infos
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Nov 16, 2024
1 parent 3c11058 commit 4e15845
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion backend/src/builder/builder.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ export class BuilderService {
* Returns all repos from the database.
*/
async getRepos(options?: any): Promise<Repo[]> {
return this.repoRepository.find({ cache: { id: "repos-general", milliseconds: 30000 } });
return this.repoRepository.find({
cache: { id: "repos-general", milliseconds: 30000 },
where: { isActive: true },
select: { id: true, name: true, repoUrl: true, gitRef: true, dbPath: true },
});
}

/**
Expand Down
2 changes: 1 addition & 1 deletion backend/src/config/repo-manager.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { registerAs } from "@nestjs/config";

export default registerAs("repoMan", () => ({
gitAuthor: process.env.GIT_AUTHOR ?? "Chaotic Temeraire",
gitAuthor: process.env.GIT_AUTHOR ?? "Temeraire",
gitEmail: process.env.GIT_EMAIL ?? "ci@chaotic.cx",
gitUsername: process.env.GIT_USERNAME ?? "git",
gitlabToken: process.env.CAUR_GITLAB_TOKEN,
Expand Down

0 comments on commit 4e15845

Please sign in to comment.