Skip to content

Commit 05c83e2

Browse files
Vikhyath MondretiVikhyath Mondreti
authored andcommitted
fix lint
1 parent 244c086 commit 05c83e2

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

apps/sim/app/api/workflows/sync/route.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { and, eq, isNull } from 'drizzle-orm'
33
import { NextResponse } from 'next/server'
44
import { getSession } from '@/lib/auth'
55
import { createLogger } from '@/lib/logs/console-logger'
6+
import { getUserEntityPermissions } from '@/lib/permissions/utils'
67
import { db } from '@/db'
78
import { workflow, workspace } from '@/db/schema'
8-
import { getUserEntityPermissions } from '@/lib/permissions/utils'
99

1010
const logger = createLogger('WorkflowAPI')
1111

@@ -22,8 +22,6 @@ async function verifyWorkspaceMembership(
2222
try {
2323
const permission = await getUserEntityPermissions(userId, 'workspace', workspaceId)
2424

25-
26-
2725
return permission
2826
} catch (error) {
2927
logger.error(`Error verifying workspace permissions for ${userId} in ${workspaceId}:`, error)

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ const IS_DEV = process.env.NODE_ENV === 'development'
3232
export function Sidebar() {
3333
useGlobalShortcuts()
3434

35-
const { workflows, createWorkflow, isLoading: workflowsLoading, loadWorkflows } = useWorkflowRegistry()
35+
const {
36+
workflows,
37+
createWorkflow,
38+
isLoading: workflowsLoading,
39+
loadWorkflows,
40+
} = useWorkflowRegistry()
3641
const { isPending: sessionLoading } = useSession()
3742
const userPermissions = useUserPermissionsContext()
3843
const isLoading = workflowsLoading || sessionLoading

apps/sim/socket-server/middleware/permissions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { and, eq } from 'drizzle-orm'
1+
import { eq } from 'drizzle-orm'
22
import { db } from '../../db'
33
import { workflow } from '../../db/schema'
44
import { createLogger } from '../../lib/logs/console-logger'

apps/sim/stores/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ async function initializeApplication(): Promise<void> {
6363
}
6464
}
6565

66-
67-
6866
/**
6967
* Checks if application is fully initialized
7068
*/

0 commit comments

Comments
 (0)