Skip to content

Commit 76c6ad4

Browse files
committed
Fix lint
1 parent f2d85da commit 76c6ad4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/sim/lib/workflows/utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,17 +440,17 @@ export async function createWorkflowRecord(params: CreateWorkflowInput) {
440440
eq(workflowTable.workspaceId, workspaceId),
441441
isNull(workflowTable.archivedAt),
442442
eq(workflowTable.name, name),
443-
...(folderId
444-
? [eq(workflowTable.folderId, folderId)]
445-
: [isNull(workflowTable.folderId)]),
443+
...(folderId ? [eq(workflowTable.folderId, folderId)] : [isNull(workflowTable.folderId)]),
446444
]
447445
const [duplicateWorkflow] = await db
448446
.select({ id: workflowTable.id })
449447
.from(workflowTable)
450448
.where(and(...duplicateConditions))
451449
.limit(1)
452450
if (duplicateWorkflow) {
453-
throw new Error(`A workflow named "${name}" already exists in this folder. Use a different name.`)
451+
throw new Error(
452+
`A workflow named "${name}" already exists in this folder. Use a different name.`
453+
)
454454
}
455455

456456
const workflowParentCondition = folderId

0 commit comments

Comments
 (0)