Skip to content

Commit

Permalink
From main NTT to main PagoPa (#158)
Browse files Browse the repository at this point in the history
Released version 2.1.2

---------

Co-authored-by: Cosmin Constantin Tuduran <cosminconstantin.tuduran@nttdata.com>
Co-authored-by: dennycarusonttdata<Denny.Caruso@nttdata.com>
  • Loading branch information
dennycarusonttdata and CCTuduranNTTData authored Dec 21, 2023
1 parent 91caf99 commit 6ab3ffd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pn-local-validator",
"version": "2.1.1",
"version": "2.1.2",
"description": "A system that emulates some features of Piattaforma Notifiche platform.",
"main": "dist/main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/http/checklist/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { evaluateReport } from '../../../domain/reportengine/reportengine';
import { report } from '../../../domain/checks/report';
import { SystemEnv } from '../../../useCases/SystemEnv';

const appVersion = '2.1.1';
const appVersion = '2.1.2';

const handler =
(env: SystemEnv): Handler =>
Expand Down
8 changes: 7 additions & 1 deletion src/domain/Notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,13 @@ export const makeNotification =
// update the notification according to the number of occurrencies
return pipe(
makeStatus(env, occurrences),
O.map((newStatus) => updateTimeline(env)(notification, ((getNotificationDetailRecord[0] as GetNotificationDetailRecord).output.returned as FullSentNotificationV21).notificationStatus === 'CANCELLED' ? NotificationStatusEnum.CANCELLED : newStatus)),
O.map((newStatus) => updateTimeline(env)(notification,
((getNotificationDetailRecord[0] as GetNotificationDetailRecord) !== undefined) &&
((getNotificationDetailRecord[0] as GetNotificationDetailRecord).output) !== undefined &&
((getNotificationDetailRecord[0] as GetNotificationDetailRecord).output.returned as FullSentNotificationV21) !== undefined &&
((getNotificationDetailRecord[0] as GetNotificationDetailRecord).output.returned as FullSentNotificationV21).notificationStatus !== undefined &&
((getNotificationDetailRecord[0] as GetNotificationDetailRecord).output.returned as FullSentNotificationV21).notificationStatus === 'CANCELLED'
? NotificationStatusEnum.CANCELLED : newStatus)),
O.getOrElse(() => notification)
);
}
Expand Down

0 comments on commit 6ab3ffd

Please sign in to comment.