(githubId: string)
| 47 | }; |
| 48 | |
| 49 | export const findGithubById = async (githubId: string) => { |
| 50 | const githubProviderResult = await db.query.github.findFirst({ |
| 51 | where: eq(github.githubId, githubId), |
| 52 | with: { |
| 53 | gitProvider: true, |
| 54 | }, |
| 55 | }); |
| 56 | |
| 57 | if (!githubProviderResult) { |
| 58 | throw new TRPCError({ |
| 59 | code: "NOT_FOUND", |
| 60 | message: "Github Provider not found", |
| 61 | }); |
| 62 | } |
| 63 | |
| 64 | return githubProviderResult; |
| 65 | }; |
| 66 | |
| 67 | export const updateGithub = async ( |
| 68 | githubId: string, |
no outgoing calls
no test coverage detected