(gitlabId: string)
| 46 | }; |
| 47 | |
| 48 | export 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 | |
| 66 | export const updateGitlab = async ( |
| 67 | gitlabId: string, |
no outgoing calls
no test coverage detected