Allow - in worker name

Sent from my iPhone
This commit is contained in:
Neal Shah
2025-07-29 20:03:13 -07:00
committed by Eric Dubé
parent a2126d5dd6
commit 402c407f81
@@ -189,7 +189,7 @@ class WorkerService extends BaseService {
async create({ filePath, workerName, authorization }) {
try {
workerName = workerName.toLocaleLowerCase(); // just incase
if(!(/^[a-zA-Z0-9_]+$/.test(workerName))) return;
if(!(/^[a-zA-Z0-9_-]+$/.test(workerName))) return;
filePath = await (await (new FSNodeParam('path')).consolidate({
req: { user: Context.get("actor").type.user },