Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

Commit 182ab47

Browse files
author
Anton Cherednikov
committed
Merge branch 'hotfix/business-domains' into 'develop'
Replace ' ' to '_' when sending createService mutation. See merge request cs-platform/public/cli!101
2 parents 5c933c7 + b118420 commit 182ab47

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "codestore",
33
"description": "code.store CLI. Add services, deploy, debug, perform all operations from your terminal.",
4-
"version": "1.10.2",
4+
"version": "1.10.3",
55
"bin": {
66
"codestore": "./bin/run",
77
"cs": "./bin/run"

src/commands/service/create.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ export default class Create extends Command {
115115
const tasks = new Listr<Ctx>([{
116116
title: `Creating service "${bold(service.name)}"`,
117117
task: async (ctx, task): Promise<void> => {
118-
const { service: { displayName: createdServiceName, id, uniqueName }, commitId } = await this.codestore.Service.create(service);
118+
const { service: { displayName: createdServiceName, id, uniqueName }, commitId } = await this.codestore.Service.create({
119+
...service,
120+
businessDomain: service.businessDomain.replace(' ', '_'),
121+
});
119122
ctx.service = {
120123
createdServiceName, id, commitId, uniqueName,
121124
};

0 commit comments

Comments
 (0)