MCPcopy
hub / github.com/Dokploy/dokploy / findGitlabById

Function findGitlabById

packages/server/src/services/gitlab.ts:48–64  ·  view source on GitHub ↗
(gitlabId: string)

Source from the content-addressed store, hash-verified

46};
47
48export const findGitlabById = async (gitlabId: string) => {
49 const gitlabProviderResult = await db.query.gitlab.findFirst({
50 where: eq(gitlab.gitlabId, gitlabId),
51 with: {
52 gitProvider: true,
53 },
54 });
55
56 if (!gitlabProviderResult) {
57 throw new TRPCError({
58 code: "NOT_FOUND",
59 message: "Gitlab Provider not found",
60 });
61 }
62
63 return gitlabProviderResult;
64};
65
66export const updateGitlab = async (
67 gitlabId: string,

Callers 7

refreshGitlabTokenFunction · 0.90
cloneGitlabRepositoryFunction · 0.90
getGitlabRepositoriesFunction · 0.90
getGitlabBranchesFunction · 0.90
testGitlabConnectionFunction · 0.90
handlerFunction · 0.90
gitlab.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected