Skip to content

Commit

Permalink
feat: kick start push request by changing status to pending
Browse files Browse the repository at this point in the history
  • Loading branch information
btrn11 committed Jan 17, 2025
1 parent 21c761a commit 644f8b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/package/packagePushUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ export class PackagePushUpgrade {
await this.writeJobErrorsToFile(pushRequestResult.id, jobErrors);
}

await connection.request({
method: 'PATCH',
url: '/services/data/v55.0/sobjects/packagepushrequest/' + pushRequestResult?.id,
body: JSON.stringify({ Status: 'Pending' }),
});

return {
PushRequestId: pushRequestResult.id,
ScheduledStartTime: scheduleTime,
Expand Down

0 comments on commit 644f8b7

Please sign in to comment.