Skip to content

Commit

Permalink
DOP-4599 change append method
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed May 21, 2024
1 parent a9a5af6 commit 476c5e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/repositories/jobRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ export class JobRepository extends BaseRepository {
// Insertion/re-enqueueing should be sent to jobs queue and updates for an existing job should be sent to jobUpdates Queue
this._logger.info(
'insertBulkJobs',
`Total Jobs Expected : ${jobs.length}, Jobs: ${JSON.stringify(jobIds)}, Total Jobs Sent: ${
JSON.stringify(jobIds).length
}`
`Total Jobs Expected : ${jobs.length}, Jobs: ${JSON.stringify(jobIds)}, Total Jobs Sent: ${jobIds.length}`
);
await Promise.all(
Object.values(jobIds).map(async (jobId: string) => {
Expand Down
3 changes: 2 additions & 1 deletion src/services/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class SlackConnector implements ISlackConnector {
//append version to repo_option if active
values['repo_option'] = [];
for (const group of optionGroups) {
values['repo_option'].append(
values['repo_option'].push(
...group.options.map((option) => {
if (!option.text.text.startsWith('(!inactive)')) return option;
})
Expand Down Expand Up @@ -198,6 +198,7 @@ export class SlackConnector implements ISlackConnector {
{
type: 'input',
block_id: 'block_repo_option',
optional: 'true',
label: {
type: 'plain_text',
text: 'Select Repo',
Expand Down

0 comments on commit 476c5e8

Please sign in to comment.