[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-04-03 20:30:20 +00:00
committed by GitHub
parent 06b18aca08
commit 4030049ee8
4 changed files with 8 additions and 24 deletions

View File

@@ -193,8 +193,7 @@ export const ShowGitProviders = () => {
await toggleShare({
gitProviderId:
gitProvider.gitProviderId,
sharedWithOrganization:
checked,
sharedWithOrganization: checked,
})
.then(() => {
toast.success(
@@ -288,17 +287,13 @@ export const ShowGitProviders = () => {
<>
{isGithub && haveGithubRequirements && (
<EditGithubProvider
githubId={
gitProvider.github?.githubId
}
githubId={gitProvider.github?.githubId}
/>
)}
{isGitlab && (
<EditGitlabProvider
gitlabId={
gitProvider.gitlab?.gitlabId
}
gitlabId={gitProvider.gitlab?.gitlabId}
/>
)}

View File

@@ -891,9 +891,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
render={() => (
<FormItem className="md:col-span-2">
<div className="mb-4">
<FormLabel className="text-base">
Git Providers
</FormLabel>
<FormLabel className="text-base">Git Providers</FormLabel>
<FormDescription>
Select the Git Providers that the user can access
</FormDescription>
@@ -925,8 +923,7 @@ export const AddUserPermissions = ({ userId, role }: Props) => {
} else {
field.onChange(
field.value?.filter(
(v) =>
v !== provider.gitProviderId,
(v) => v !== provider.gitProviderId,
),
);
}

View File

@@ -71,9 +71,7 @@ export const gitProviderRouter = createTRPCRouter({
allForPermissions: withPermission("member", "update")
.use(async ({ ctx, next }) => {
const licensed = await hasValidLicense(
ctx.session.activeOrganizationId,
);
const licensed = await hasValidLicense(ctx.session.activeOrganizationId);
if (!licensed) {
throw new TRPCError({
code: "FORBIDDEN",
@@ -90,10 +88,7 @@ export const gitProviderRouter = createTRPCRouter({
providerType: true,
},
orderBy: desc(gitProvider.createdAt),
where: eq(
gitProvider.organizationId,
ctx.session.activeOrganizationId,
),
where: eq(gitProvider.organizationId, ctx.session.activeOrganizationId),
});
}),