This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,12 @@ workflows:
70
70
branches :
71
71
only :
72
72
- develop
73
- - dev-circleci
73
+ - feature/shapeup-cqrs-update
74
74
75
75
# Production builds are exectuted only on tagged commits to the
76
76
# master branch.
77
77
- " build-prod " :
78
78
context : org-global
79
79
filters :
80
80
branches :
81
- only : master
81
+ only : master
Original file line number Diff line number Diff line change @@ -20,7 +20,10 @@ const config = require('config')
20
20
*/
21
21
async function processCreate ( message , transactionId ) {
22
22
const resource = message . payload . resource
23
+
24
+ // shapeup - CQRS standards update
23
25
const fixedTopResources = _ . filter ( _ . keys ( topResources ) , ( key ) => key !== 'user' )
26
+
24
27
if ( _ . includes ( _ . keys ( fixedTopResources ) , resource ) ) {
25
28
// process the top resources such as user, skill...
26
29
helper . validProperties ( message . payload , [ 'id' ] )
@@ -108,7 +111,10 @@ processCreate.schema = {
108
111
*/
109
112
async function processUpdate ( message , transactionId ) {
110
113
const resource = message . payload . resource
114
+
115
+ // shapeup - CQRS standards update
111
116
const fixedTopResources = _ . filter ( _ . keys ( topResources ) , ( key ) => key !== 'user' )
117
+
112
118
if ( _ . includes ( fixedTopResources , resource ) ) {
113
119
logger . info ( `Processing top level resource: ${ resource } ` )
114
120
// process the top resources such as user, skill...
You can’t perform that action at this time.
0 commit comments