Skip to content

Commit

Permalink
Merge pull request #259 from msupply-foundation/253-fix-escaping-in-logs
Browse files Browse the repository at this point in the history
253 fix escaping in logs
  • Loading branch information
lache-melvin authored Nov 21, 2023
2 parents b194906 + 3a6ef45 commit f26163d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ export function parseColdChainNotificationConfig(
): CCNotification | null {
if (!config) return null;
try {
const { configurationData, ...rest } = config;

return {
...defaultCCNotification,
...JSON.parse(config.configurationData),
...config,
...JSON.parse(configurationData),
...rest,
};
} catch (e) {
showError();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ export function parseScheduledNotificationConfig(
): ScheduledNotification | null {
if (!config) return null;
try {
const { configurationData, ...rest } = config;

return {
...defaultSchedulerNotification,
...JSON.parse(config.configurationData),
...config,
...JSON.parse(configurationData),
...rest,
};
} catch (e) {
showError();
Expand Down

0 comments on commit f26163d

Please sign in to comment.