deepsource-autofix-76c6eb20
Dan Gowans 2024-06-20 12:24:51 -04:00
parent 4b771f102c
commit c621df5c17
4 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
import * as configFunctions from './functions.config.js';
import { getLot } from '../database/getLot.js';
import { getLotOccupancy } from '../database/getLotOccupancy.js';
import { getWorkOrder } from '../database/getWorkOrder.js';
import * as configFunctions from './functions.config.js';
const screenPrintConfigs = {
lotOccupancy: {
title: `${configFunctions.getProperty('aliases.lot')} ${configFunctions.getProperty('aliases.occupancy')} Print`,

View File

@ -1,9 +1,9 @@
import * as configFunctions from './functions.config.js'
import { getLot } from '../database/getLot.js'
import { getLotOccupancy } from '../database/getLotOccupancy.js'
import { getWorkOrder } from '../database/getWorkOrder.js'
import * as configFunctions from './functions.config.js'
interface PrintConfig {
title: string
params: string[]

View File

@ -5,12 +5,12 @@ export function getLotNameWhereClause(lotName = '', lotNameSearchType, lotsTable
if (lotName !== '') {
switch (lotNameSearchType) {
case 'startsWith': {
sqlWhereClause += ' and ' + lotsTableAlias + ".lotName like ? || '%'";
sqlWhereClause += ` and ${lotsTableAlias}.lotName like ? || '%'`;
sqlParameters.push(lotName);
break;
}
case 'endsWith': {
sqlWhereClause += ' and ' + lotsTableAlias + ".lotName like '%' || ?";
sqlWhereClause += ` and ${lotsTableAlias}.lotName like '%' || ?`;
sqlParameters.push(lotName);
break;
}

View File

@ -18,12 +18,12 @@ export function getLotNameWhereClause(
if (lotName !== '') {
switch (lotNameSearchType) {
case 'startsWith': {
sqlWhereClause += ' and ' + lotsTableAlias + ".lotName like ? || '%'"
sqlWhereClause += ` and ${lotsTableAlias}.lotName like ? || '%'`
sqlParameters.push(lotName)
break
}
case 'endsWith': {
sqlWhereClause += ' and ' + lotsTableAlias + ".lotName like '%' || ?"
sqlWhereClause += ` and ${lotsTableAlias}.lotName like '%' || ?`
sqlParameters.push(lotName)
break
}