Skip to content

Commit

Permalink
fix: restored skipped false
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldisaro committed Jun 20, 2024
1 parent 8011380 commit c48a164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HandleNHNotifyMessageCallActivityQueue/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const handle = (
message.installationId,
telemetryClient
),
TE.map(sent => ({ kind: "SUCCESS", skipped: !sent }))
TE.map(sent => ({ kind: "SUCCESS", skipped: false }))
)
),
TE.mapLeft(toTransientFailure),
Expand Down
3 changes: 1 addition & 2 deletions utils/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const notify = (
payload: NotifyMessagePayload,
installationId: InstallationId,
telemetryClient: TelemetryClient
): TaskEither<Error, boolean> =>
): TaskEither<Error, void> =>
pipe(
createNotification(payload),
TE.chain(notification =>
Expand All @@ -126,7 +126,6 @@ export const notify = (
},
tagOverrides: { samplingEnabled: "false" }
});
return response.successCount > 0 ? true : false;
})
);

Expand Down

0 comments on commit c48a164

Please sign in to comment.