Skip to content

Commit a254602

Browse files
committed
worker group name can't be an empty string
1 parent 45a829e commit a254602

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/webapp/app/v3/services/worker/workerGroupService.server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export class WorkerGroupService extends WithRunEngine {
1818
name?: string;
1919
description?: string;
2020
}) {
21-
name = name ?? (await this.generateWorkerName({ projectId }));
21+
if (!name) {
22+
name = await this.generateWorkerName({ projectId });
23+
}
2224

2325
const tokenService = new WorkerGroupTokenService({
2426
prisma: this._prisma,

0 commit comments

Comments
 (0)