Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const filterByDoc = doc => ({
type: FILTER_BY_DOC,
doc: doc && (doc.length ? doc : dehydrate(doc))
})
export const filterByAccounts = accounts => ({
recurrenceBundle.ops.map(op =>
addRelationship(dehydrate(op), 'recurrence', {
_id: recurrenceBundle._id,
_type: RECURRENCE_DOCTYPE
})
)