Skip to content

Commit

Permalink
Fix inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
leelasn committed Oct 17, 2024
1 parent c83437d commit e14057d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/creates/createIssue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ interface CreateIssueRequestResponse {
}

const createIssueRequest = async (z: ZObject, bundle: Bundle) => {
const priority = bundle.inputData.priority ? parseInt(bundle.inputData.priority) : 0;
const estimate = bundle.inputData.estimate ? parseInt(bundle.inputData.estimate) : null;
const priority = bundle.inputData.priority ? parseInt(bundle.inputData.priority) : undefined;
const estimate = bundle.inputData.estimate ? parseInt(bundle.inputData.estimate) : undefined;

const subscriberIds: string[] = [];
if (bundle.inputData.subscriber_emails) {
Expand Down Expand Up @@ -98,8 +98,8 @@ const createIssueRequest = async (z: ZObject, bundle: Bundle) => {
projectId: bundle.inputData.project_id,
projectMilestoneId: bundle.inputData.project_milestone_id,
dueDate: bundle.inputData.due_date,
labelIds: bundle.inputData.labels || [],
subscriberIds,
labelIds: bundle.inputData.labels || undefined,
subscriberIds: subscriberIds.length > 0 ? subscriberIds : undefined,
};

const query = `
Expand Down

0 comments on commit e14057d

Please sign in to comment.