fix: only create share slug when public-share deployment
This commit is contained in:
parent
763d2f77ce
commit
43cfebd97a
@ -75,7 +75,8 @@ export async function createDeployments(
|
||||
machine_id,
|
||||
environment,
|
||||
org_id: orgId,
|
||||
share_slug: slugify(`${userName} ${workflow.name}`),
|
||||
// only create share slug if this is plublic share
|
||||
share_slug: environment == "public-share" ? slugify(`${userName} ${workflow.name}`) : null
|
||||
});
|
||||
}
|
||||
revalidatePath(`/${workflow_id}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user