Skip to content

Commit 703c300

Browse files
author
Gerald Baulig
committed
fix(kafka): set correct event names
1 parent 4944b18 commit 703c300

File tree

5 files changed

+33
-13
lines changed

5 files changed

+33
-13
lines changed

cfg/config.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -168,22 +168,22 @@
168168
"fulfillmentDeleted": {
169169
"messageObject": "io.restorecommerce.resourcebase.Deleted"
170170
},
171-
"fulfillmentCourierCreated": {
171+
"fulfillment_courierCreated": {
172172
"messageObject": "io.restorecommerce.fulfillment_courier.FulfillmentCourier"
173173
},
174-
"fulfillmentCourierModified": {
174+
"fulfillment_courierModified": {
175175
"messageObject": "io.restorecommerce.fulfillment_courier.FulfillmentCourier"
176176
},
177-
"fulfillmentCourierDeleted": {
177+
"fulfillment_courierDeleted": {
178178
"messageObject": "io.restorecommerce.resourcebase.Deleted"
179179
},
180-
"fulfillmentProductCreated": {
180+
"fulfillment_productCreated": {
181181
"messageObject": "io.restorecommerce.fulfillment_product.FulfillmentProduct"
182182
},
183-
"fulfillmentProductModified": {
183+
"fulfillment_productModified": {
184184
"messageObject": "io.restorecommerce.fulfillment_product.FulfillmentProduct"
185185
},
186-
"fulfillmentProductDeleted": {
186+
"fulfillment_productDeleted": {
187187
"messageObject": "io.restorecommerce.resourcebase.Deleted"
188188
},
189189

cfg/config_test.json

+18
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,24 @@
2222
"groupId": "restore-fulfillment-srv-test",
2323
"kafka": {
2424
"clientId": "restore-fulfillment-srv-test"
25+
},
26+
"fulfillmentCourierCreated": {
27+
"messageObject": "io.restorecommerce.fulfillment_courier.FulfillmentCourier"
28+
},
29+
"fulfillmentCourierModified": {
30+
"messageObject": "io.restorecommerce.fulfillment_courier.FulfillmentCourier"
31+
},
32+
"fulfillmentCourierDeleted": {
33+
"messageObject": "io.restorecommerce.resourcebase.Deleted"
34+
},
35+
"fulfillmentProductCreated": {
36+
"messageObject": "io.restorecommerce.fulfillment_product.FulfillmentProduct"
37+
},
38+
"fulfillmentProductModified": {
39+
"messageObject": "io.restorecommerce.fulfillment_product.FulfillmentProduct"
40+
},
41+
"fulfillmentProductDeleted": {
42+
"messageObject": "io.restorecommerce.resourcebase.Deleted"
2543
}
2644
}
2745
},

package-lock.json

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
"@restorecommerce/cart": "^1.0.9",
1515
"@restorecommerce/chassis-srv": "^1.6.5",
1616
"@restorecommerce/grpc-client": "^2.2.4",
17-
"@restorecommerce/logger": "^1.3.1",
17+
"@restorecommerce/kafka-client": "1.2.22",
18+
"@restorecommerce/logger": "^1.3.2",
1819
"@restorecommerce/rc-grpc-clients": "^5.1.44",
1920
"@restorecommerce/resource-base-interface": "^1.6.5",
20-
"@restorecommerce/service-config": "^1.0.15",
21+
"@restorecommerce/service-config": "^1.0.16",
2122
"@types/soap": "0.18.0",
2223
"@types/xml-js": "0.9.0",
2324
"bignumber.js": "^9.1.2",
2425
"csv-parse": "^5.6.0",
2526
"dayjs": "^1.11.10",
26-
"redis": "^4.6.14",
27+
"redis": "^4.7.0",
2728
"soap": "1.1.6",
2829
"xml-js": "^1.6.11"
2930
},

src/experimental/AccessControlledServiceBase.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export class AccessControlledServiceBase<O extends ResourceListResponse, I exten
283283
@resolves_subject()
284284
@injects_meta_data()
285285
@access_controlled_function({
286-
action: AuthZAction.CREATE,
286+
action: AuthZAction.MODIFY,
287287
operation: Operation.isAllowed,
288288
context: ACSContextFactory<O, I>,
289289
resource: DefaultResourceFactory(),

0 commit comments

Comments
 (0)