Squashed commit of the following:
commit 43cfebd97a
Author: BennyKok <[email protected]>
Date: Fri Jan 26 07:33:30 2024 +0000
fix: only create share slug when public-share deployment
This commit is contained in:
@@ -75,7 +75,8 @@ export async function createDeployments(
|
|||||||
machine_id,
|
machine_id,
|
||||||
environment,
|
environment,
|
||||||
org_id: orgId,
|
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}`);
|
revalidatePath(`/${workflow_id}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user