Skip to content

Commit

Permalink
feat(cb2-12696): corrected enum
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-cs committed Oct 1, 2024
1 parent 1262571 commit ff34f7c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/eventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ const eventHandler = async (event: SQSEvent) => {
switch (dbRecord.eventName) {
case 'INSERT': {
const currentRecord = unmarshall(dbRecord.dynamodb.NewImage as Record<string, AttributeValue>) as TestResultSchema;
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
if (process.env.PROCESS_DESK_BASED_TESTS !== 'true' && currentRecord.typeOfTest === TypeOfTest.DESK_BASED) {
if (process.env.PROCESS_DESK_BASED_TESTS !== 'true' && currentRecord.typeOfTest === TypeOfTest.DESK_BASED as TypeOfTest) {
logger.info('Ignoring desk based test');
break;
}
Expand Down

0 comments on commit ff34f7c

Please sign in to comment.