Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 5d6cef4

Browse files
author
Sachin Maheshwari
committed
deploying...
1 parent 95fcf55 commit 5d6cef4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ workflows:
7070
branches:
7171
only:
7272
- develop
73-
- dev-circleci
73+
- feature/shapeup-cqrs-update
7474

7575
# Production builds are exectuted only on tagged commits to the
7676
# master branch.
7777
- "build-prod":
7878
context : org-global
7979
filters:
8080
branches:
81-
only: master
81+
only: master

src/services/ProcessorService.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ const config = require('config')
2020
*/
2121
async function processCreate (message, transactionId) {
2222
const resource = message.payload.resource
23+
24+
// shapeup - CQRS standards update
2325
const fixedTopResources = _.filter(_.keys(topResources), (key) => key !== 'user')
26+
2427
if (_.includes(_.keys(fixedTopResources), resource)) {
2528
// process the top resources such as user, skill...
2629
helper.validProperties(message.payload, ['id'])
@@ -108,7 +111,10 @@ processCreate.schema = {
108111
*/
109112
async function processUpdate (message, transactionId) {
110113
const resource = message.payload.resource
114+
115+
// shapeup - CQRS standards update
111116
const fixedTopResources = _.filter(_.keys(topResources), (key) => key !== 'user')
117+
112118
if (_.includes(fixedTopResources, resource)) {
113119
logger.info(`Processing top level resource: ${resource}`)
114120
// process the top resources such as user, skill...

0 commit comments

Comments
 (0)