mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-15 20:25:23 +02:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
@@ -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,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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),
|
||||
});
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user