diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-07-11 00:50:00 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-07-11 00:50:00 +0200 |
| commit | 91e8fdb99e321496c54288fe5a3db6397c768c10 (patch) | |
| tree | 2bb82323466c7895eb705138e561278b02ce8ca2 /frontend/api | |
| parent | 2001ddd7e2a8926ec97fdd4d5c73b2d4e5b293de (diff) | |
building basic site. need to include cursors, etc
Diffstat (limited to 'frontend/api')
| -rw-r--r-- | frontend/api/crud.types.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/api/crud.types.js b/frontend/api/crud.types.js index 7a64f5c..7b24811 100644 --- a/frontend/api/crud.types.js +++ b/frontend/api/crud.types.js @@ -1,7 +1,7 @@ export const as_type = (a, b) => [a, b].join('_').toUpperCase() -export const with_type = (type, actions) => +export const with_type = (type, actions) => actions.reduce((a, b) => (a[b] = as_type(type, b)) && a, {}) export const crud_type = (type, actions=[]) => |
