Skip to content

Commit

Permalink
linter cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Jul 29, 2024
1 parent 6d47145 commit 5520a1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
3 changes: 2 additions & 1 deletion helpers/getAccountNumber.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import type { config as MSSQLConfig } from '@cityssm/mssql-multi-pool';
export interface AccountNumberSource {
accountNumber: string;
accountNumberSource: 'assignedJobActivityObjectCode' | 'assignedJobObjectCode' | 'jobObjectCode';
accountNumberSource: // eslint-disable-next-line no-secrets/no-secrets
'assignedJobActivityObjectCode' | 'assignedJobObjectCode' | 'jobObjectCode';
}
/**
* Retrieves an account number for a given work order.
Expand Down
3 changes: 1 addition & 2 deletions helpers/getAccountNumber.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// eslint-disable-next-line eslint-comments/disable-enable-pair
/* eslint-disable @typescript-eslint/indent */
import { accountSegmentSeparator } from '../apiConfig.js';
import { getJobActivityObjectCodeByKeys } from '../queries/jobs/getJobActivityObjectCodes.js';
import { getJobByJobId } from '../queries/jobs/getJobs.js';
Expand Down Expand Up @@ -39,6 +37,7 @@ export async function getAccountNumberByWorkOrderNumberAndObjectCode(mssqlConfig
});
if (code !== undefined && code.accountNumber !== '') {
return {
// eslint-disable-next-line no-secrets/no-secrets
accountNumberSource: 'assignedJobActivityObjectCode',
accountNumber: code.accountNumber
};
Expand Down
10 changes: 3 additions & 7 deletions helpers/getAccountNumber.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// eslint-disable-next-line eslint-comments/disable-enable-pair
/* eslint-disable @typescript-eslint/indent */

import type { config as MSSQLConfig } from '@cityssm/mssql-multi-pool'

import { accountSegmentSeparator } from '../apiConfig.js'
Expand All @@ -14,10 +11,8 @@ import { getWorkOrderByWorkOrderNumber } from '../queries/workOrders/getWorkOrde

export interface AccountNumberSource {
accountNumber: string
accountNumberSource:
| 'assignedJobActivityObjectCode'
| 'assignedJobObjectCode'
| 'jobObjectCode'
accountNumberSource: // eslint-disable-next-line no-secrets/no-secrets
'assignedJobActivityObjectCode' | 'assignedJobObjectCode' | 'jobObjectCode'
}

/**
Expand Down Expand Up @@ -69,6 +64,7 @@ export async function getAccountNumberByWorkOrderNumberAndObjectCode(

if (code !== undefined && code.accountNumber !== '') {
return {
// eslint-disable-next-line no-secrets/no-secrets
accountNumberSource: 'assignedJobActivityObjectCode',
accountNumber: code.accountNumber
}
Expand Down

0 comments on commit 5520a1c

Please sign in to comment.