Skip to content

Commit

Permalink
fix a type issue where the value coming from minimist is an int
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi committed Dec 15, 2024
1 parent b9d650b commit 712b50f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion connectors/src/connectors/confluence/lib/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export const confluence = async ({
if (!args.pageId) {
throw new Error("Missing --pageId argument");
}
const { connectorId, pageId } = args;
const { connectorId } = args;
const pageId = args.pageId.toString();

const client = await getTemporalClient();
const workflow = await client.workflow.start(
Expand Down
2 changes: 1 addition & 1 deletion types/src/connectors/admin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const ConfluenceCommandSchema = t.type({
]),
args: t.type({
connectorId: t.union([t.number, t.undefined]),
pageId: t.union([t.string, t.undefined]),
pageId: t.union([t.number, t.undefined]),
file: t.union([t.string, t.undefined]),
keyInFile: t.union([t.string, t.undefined]),
}),
Expand Down

0 comments on commit 712b50f

Please sign in to comment.