From a86890d8560feab92eded9b4e4e5d4f580bb4f86 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Thu, 5 Feb 2026 14:17:32 -0800 Subject: [PATCH] lint --- apps/client/public/locales/en-US/translation.json | 1 - apps/server/src/core/share/share.controller.ts | 5 ++++- apps/server/src/core/share/share.service.ts | 11 ++++++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/apps/client/public/locales/en-US/translation.json b/apps/client/public/locales/en-US/translation.json index eaa8b233..fa040002 100644 --- a/apps/client/public/locales/en-US/translation.json +++ b/apps/client/public/locales/en-US/translation.json @@ -407,7 +407,6 @@ "Share deleted successfully": "Share deleted successfully", "Share not found": "Share not found", "Failed to share page": "Failed to share page", - "Public Sharing": "Public Sharing", "Disable public sharing": "Disable public sharing", "Prevent members from sharing pages publicly.": "Prevent members from sharing pages publicly.", "Toggle public sharing": "Toggle public sharing", diff --git a/apps/server/src/core/share/share.controller.ts b/apps/server/src/core/share/share.controller.ts index 99370948..fb7639c1 100644 --- a/apps/server/src/core/share/share.controller.ts +++ b/apps/server/src/core/share/share.controller.ts @@ -202,7 +202,10 @@ export class ShareController { @Body() dto: ShareIdDto, @AuthWorkspace() workspace: Workspace, ) { - const treeData = await this.shareService.getShareTree(dto.shareId, workspace.id); + const treeData = await this.shareService.getShareTree( + dto.shareId, + workspace.id, + ); const sharingAllowed = await this.shareService.isSharingAllowed( workspace.id, diff --git a/apps/server/src/core/share/share.service.ts b/apps/server/src/core/share/share.service.ts index 3afe3706..c34ebff9 100644 --- a/apps/server/src/core/share/share.service.ts +++ b/apps/server/src/core/share/share.service.ts @@ -264,7 +264,10 @@ export class ShareService { return ancestor; } - async isSharingAllowed(workspaceId: string, spaceId: string): Promise { + async isSharingAllowed( + workspaceId: string, + spaceId: string, + ): Promise { const result = await this.db .selectFrom('workspaces') .innerJoin('spaces', 'spaces.workspaceId', 'workspaces.id') @@ -278,8 +281,10 @@ export class ShareService { if (!result) return false; - const workspaceDisabled = (result.workspaceSettings as any)?.sharing?.disabled === true; - const spaceDisabled = (result.spaceSettings as any)?.sharing?.disabled === true; + const workspaceDisabled = + (result.workspaceSettings as any)?.sharing?.disabled === true; + const spaceDisabled = + (result.spaceSettings as any)?.sharing?.disabled === true; return !workspaceDisabled && !spaceDisabled; }