fix: change hardcoded gitlab.com to gitlabUrl

This commit is contained in:
djknaeckebrot
2024-12-10 08:53:53 +01:00
parent 22e6d07f60
commit 7ced6840fa
2 changed files with 5 additions and 4 deletions

View File

@@ -78,6 +78,7 @@ export const gitlabRouter = createTRPCRouter({
.input(apiFindOneGitlab)
.query(async ({ input, ctx }) => {
const gitlabProvider = await findGitlabById(input.gitlabId);
console.log("DEBUG: gitlabProvider: ", gitlabProvider);
if (IS_CLOUD && gitlabProvider.gitProvider.adminId !== ctx.user.adminId) {
//TODO: Remove this line when the cloud version is ready
throw new TRPCError({