summaryrefslogtreecommitdiff
path: root/frontend/api/crud.types.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-11 00:50:00 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-11 00:50:00 +0200
commit91e8fdb99e321496c54288fe5a3db6397c768c10 (patch)
tree2bb82323466c7895eb705138e561278b02ce8ca2 /frontend/api/crud.types.js
parent2001ddd7e2a8926ec97fdd4d5c73b2d4e5b293de (diff)
building basic site. need to include cursors, etc
Diffstat (limited to 'frontend/api/crud.types.js')
-rw-r--r--frontend/api/crud.types.js2
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=[]) =>