mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -21,7 +21,7 @@ export const githubRouter = createTRPCRouter({
|
|||||||
const githubProvider = await findGithubById(input.githubId);
|
const githubProvider = await findGithubById(input.githubId);
|
||||||
if (
|
if (
|
||||||
githubProvider.gitProvider.organizationId !==
|
githubProvider.gitProvider.organizationId !==
|
||||||
ctx.session.activeOrganizationId &&
|
ctx.session.activeOrganizationId &&
|
||||||
githubProvider.gitProvider.userId === ctx.session.userId
|
githubProvider.gitProvider.userId === ctx.session.userId
|
||||||
) {
|
) {
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
@@ -37,7 +37,7 @@ export const githubRouter = createTRPCRouter({
|
|||||||
const githubProvider = await findGithubById(input.githubId);
|
const githubProvider = await findGithubById(input.githubId);
|
||||||
if (
|
if (
|
||||||
githubProvider.gitProvider.organizationId !==
|
githubProvider.gitProvider.organizationId !==
|
||||||
ctx.session.activeOrganizationId &&
|
ctx.session.activeOrganizationId &&
|
||||||
githubProvider.gitProvider.userId === ctx.session.userId
|
githubProvider.gitProvider.userId === ctx.session.userId
|
||||||
) {
|
) {
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
@@ -53,7 +53,7 @@ export const githubRouter = createTRPCRouter({
|
|||||||
const githubProvider = await findGithubById(input.githubId || "");
|
const githubProvider = await findGithubById(input.githubId || "");
|
||||||
if (
|
if (
|
||||||
githubProvider.gitProvider.organizationId !==
|
githubProvider.gitProvider.organizationId !==
|
||||||
ctx.session.activeOrganizationId &&
|
ctx.session.activeOrganizationId &&
|
||||||
githubProvider.gitProvider.userId === ctx.session.userId
|
githubProvider.gitProvider.userId === ctx.session.userId
|
||||||
) {
|
) {
|
||||||
//TODO: Remove this line when the cloud version is ready
|
//TODO: Remove this line when the cloud version is ready
|
||||||
@@ -74,8 +74,8 @@ export const githubRouter = createTRPCRouter({
|
|||||||
result = result.filter(
|
result = result.filter(
|
||||||
(provider) =>
|
(provider) =>
|
||||||
provider.gitProvider.organizationId ===
|
provider.gitProvider.organizationId ===
|
||||||
ctx.session.activeOrganizationId &&
|
ctx.session.activeOrganizationId &&
|
||||||
provider.gitProvider.userId === ctx.session.userId
|
provider.gitProvider.userId === ctx.session.userId,
|
||||||
);
|
);
|
||||||
|
|
||||||
const filtered = result
|
const filtered = result
|
||||||
@@ -99,7 +99,7 @@ export const githubRouter = createTRPCRouter({
|
|||||||
const githubProvider = await findGithubById(input.githubId);
|
const githubProvider = await findGithubById(input.githubId);
|
||||||
if (
|
if (
|
||||||
githubProvider.gitProvider.organizationId !==
|
githubProvider.gitProvider.organizationId !==
|
||||||
ctx.session.activeOrganizationId &&
|
ctx.session.activeOrganizationId &&
|
||||||
githubProvider.gitProvider.userId === ctx.session.userId
|
githubProvider.gitProvider.userId === ctx.session.userId
|
||||||
) {
|
) {
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
@@ -122,7 +122,7 @@ export const githubRouter = createTRPCRouter({
|
|||||||
const githubProvider = await findGithubById(input.githubId);
|
const githubProvider = await findGithubById(input.githubId);
|
||||||
if (
|
if (
|
||||||
githubProvider.gitProvider.organizationId !==
|
githubProvider.gitProvider.organizationId !==
|
||||||
ctx.session.activeOrganizationId &&
|
ctx.session.activeOrganizationId &&
|
||||||
githubProvider.gitProvider.userId === ctx.session.userId
|
githubProvider.gitProvider.userId === ctx.session.userId
|
||||||
) {
|
) {
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
|
|||||||
Reference in New Issue
Block a user