Skip to content

Commit

Permalink
Do not get schedule with update
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Jun 9, 2024
1 parent 666d469 commit 3e5784a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion lib/clients/scheduler.doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
/**
* Update a schedule.
* AWS uses a replace all attributes strategy when updating schedules.
* This method simplifies updates by getting the existing schedule first and merging all existing top level keys with the new parameter values.
* AWS schedules
* @async
* @function deleteSchedule
Expand Down
5 changes: 1 addition & 4 deletions lib/clients/scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,8 @@ export class SchedulerClient {
})
try {
log.info('start')
const schedule = await this.getSchedule(scheduleName, {
groupName: params.groupName
})

const req = formatReq({ ...schedule, ...params, name: scheduleName })
const req = formatReq({ ...params, name: scheduleName })
const command = new UpdateScheduleCommand(req)

const res = await this.#client.send(command)
Expand Down

0 comments on commit 3e5784a

Please sign in to comment.