Skip to content

Conversation

@danieleruiz
Copy link
Contributor

Description

Add defensive code to redshift cron callback

@danieleruiz danieleruiz requested a review from a team September 11, 2023 13:55
@next-team next-team temporarily deployed to ft-next-synd-defensive--s6xw0f September 11, 2023 13:55 Inactive

CSV.push(...items.map(item => headers.map(key => safe(item[key])).join(',')));
function safeItemKey(item, key) {
return item && typeof item[key] !== 'undefined' ? safe(item[key]) : '';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: what if the type is null?

@danieleruiz danieleruiz temporarily deployed to ft-next-synd-defensive--s6xw0f September 11, 2023 14:04 Inactive
@danieleruiz danieleruiz temporarily deployed to ft-next-synd-defensive--s6xw0f September 11, 2023 17:50 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants