Skip to content

Commit

Permalink
CB2-11778: update mysql2 (#92)
Browse files Browse the repository at this point in the history
* feat(cb2-11778): update evl query following database change

* feat(cb2-11778): fix nesting issue
  • Loading branch information
LGin-BJSS authored Jun 3, 2024
1 parent a4b231a commit 560fdf1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/databaseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function getEvlFeedByVrmDetails(queryResult: QueryOutput): EvlFeedData {
}

function getFeedDetails(queryResult: QueryOutput, feedName: FeedName): EvlFeedData[] | TflFeedData[] {
const feedQueryResults: EvlFeedData[] | TflFeedData[] = feedName === FeedName.EVL ? (queryResult[0][1] as EvlFeedData[]) : (queryResult[0] as TflFeedData[]);
const feedQueryResults: EvlFeedData[] | TflFeedData[] = feedName === FeedName.EVL ? (queryResult[0] as EvlFeedData[]) : (queryResult[0] as TflFeedData[]);
if (feedQueryResults === undefined || feedQueryResults.length === 0) {
throw new NotFoundError('No tests found');
}
Expand Down
1 change: 0 additions & 1 deletion src/infrastructure/databaseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ export default class DatabaseService implements DatabaseServiceInterface {
port: dbConnectionDetails.port,
database: process.env.SCHEMA_NAME,
multipleStatements: true,
charset: 'utf8mb4',
});
}

Expand Down

0 comments on commit 560fdf1

Please sign in to comment.