summaryrefslogtreecommitdiff
path: root/frontend/api/crud.types.js
diff options
context:
space:
mode:
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=[]) =>