( gitProviderId: string, input: Partial<GitProvider>, )
| 30 | }; |
| 31 | |
| 32 | export const updateGitProvider = async ( |
| 33 | gitProviderId: string, |
| 34 | input: Partial<GitProvider>, |
| 35 | ) => { |
| 36 | return await db |
| 37 | .update(gitProvider) |
| 38 | .set({ |
| 39 | ...input, |
| 40 | }) |
| 41 | .where(eq(gitProvider.gitProviderId, gitProviderId)) |
| 42 | .returning() |
| 43 | .then((response) => response[0]); |
| 44 | }; |
| 45 | |
| 46 | // Returns true if the user can edit the git source configuration of an existing |
| 47 | // deploy that is connected to the given provider. |
no outgoing calls
no test coverage detected