Skip to content

Commit

Permalink
DOP-4599 nits
Browse files Browse the repository at this point in the history
  • Loading branch information
anabellabuckvar committed May 30, 2024
1 parent 45cdaa4 commit 8a7935b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 3 additions & 2 deletions api/controllers/v1/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
import { DocsetsRepository } from '../../../src/repositories/docsetsRepository';
import { Payload } from '../../../src/entities/job';
import { ProjectsRepository } from '../../../src/repositories/projectsRepository';
import DOCS_METADATA from '../../../src/constants';
import { DOCS_METADATA } from '../../../src/constants';

export const DisplayRepoOptions = async (event: APIGatewayEvent): Promise<APIGatewayProxyResult> => {
const consoleLogger = new ConsoleLogger();
Expand Down Expand Up @@ -80,6 +80,7 @@ export const DisplayRepoOptions = async (event: APIGatewayEvent): Promise<APIGat
async function deployRepo(deployable: Array<any>, logger: ILogger, jobRepository: JobRepository, jobQueueUrl) {
try {
await jobRepository.insertBulkJobs(deployable, jobQueueUrl);
console.error('testing console error logging');
} catch (err) {
console.error('Deploy repo error');
}
Expand Down Expand Up @@ -150,7 +151,7 @@ export const getDeployableJobs = async (
directory
);

if (!aliases || aliases.length) {
if (!aliases || !aliases.length) {
if (non_versioned) {
newPayload.urlSlug = '';
}
Expand Down
4 changes: 1 addition & 3 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
const DOCS_METADATA = 'docs_metadata';

export default DOCS_METADATA;
export const DOCS_METADATA = 'docs_metadata';
4 changes: 2 additions & 2 deletions src/services/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export class SlackConnector implements ISlackConnector {
values['repo_option'] = [];
for (const group of optionGroups) {
values['repo_option'].push(
...group.options.map((option) => {
if (!option.text.text.startsWith('(!inactive)')) return option;
...group.options.filter((option) => {
!option.text.text.startsWith('(!inactive)');
})
);
}
Expand Down

0 comments on commit 8a7935b

Please sign in to comment.