mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
ran lint
This commit is contained in:
@@ -38,7 +38,7 @@ export async function POST(request: NextRequest) {
|
||||
const accountIdValidation = validatePathSegment(accountId, {
|
||||
paramName: 'accountId',
|
||||
maxLength: 255,
|
||||
customPattern: /^[a-zA-Z0-9:\-]+$/,
|
||||
customPattern: /^[a-zA-Z0-9:-]+$/,
|
||||
})
|
||||
if (!accountIdValidation.isValid) {
|
||||
return NextResponse.json({ error: accountIdValidation.error }, { status: 400 })
|
||||
|
||||
@@ -270,9 +270,7 @@ async function auditWorkflowLockToggle(workflowId: string, actorId: string): Pro
|
||||
resourceType: AuditResourceType.WORKFLOW,
|
||||
resourceId: workflowId,
|
||||
resourceName: wf.name,
|
||||
description: allLocked
|
||||
? `Locked workflow "${wf.name}"`
|
||||
: `Unlocked workflow "${wf.name}"`,
|
||||
description: allLocked ? `Locked workflow "${wf.name}"` : `Unlocked workflow "${wf.name}"`,
|
||||
metadata: { blockCount: blocks.length },
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user