-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Init #1
base: Lucas
Are you sure you want to change the base?
Init #1
Conversation
src/http.js
Outdated
|
||
const countTypes = (dataflows, types) => { | ||
const groupedData = groupBy(dataflow => dataflow.type, dataflows); | ||
const newTypes = types; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!!!!!!
src/http.js
Outdated
const groupedData = groupBy(dataflow => dataflow.type, dataflows); | ||
const newTypes = types; | ||
newTypes.map((type) => { | ||
type.count = groupedData[`${type.type}`].length; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's already a string
src/http.js
Outdated
|
||
const formateGroupeTypes = type => { | ||
const ret = type; | ||
ret.type = ret.avatar; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!!!!!
src/mongo.js
Outdated
}); | ||
}; | ||
|
||
const getFilteredDataflows = db => (req, res) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Too simple !!
src/http.js
Outdated
const { lang } = req.params; | ||
let searchParams = []; | ||
let fieldsValue; | ||
const restQuery = flatten(map(getRestQuery(lang), toPairs(rest))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be a composition compose(...)
No description provided.