Skip to content

Commit 2557f79

Browse files
committed
fix(mu): update error status
1 parent 59f1b6d commit 2557f79

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

servers/mu/src/domain/api/monitorProcess.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export function monitorProcessWith ({
1919
const whitelist = fetchProcessWhitelist ? fetchProcessWhitelist() : {}
2020
if (whitelist && Object.keys(whitelist).length > 0 && !whitelist[ctx.tx.processId]) {
2121
const error = new Error('Forbidden, process not whitelisted')
22-
error.code = 403
22+
error.status = 403
2323
return Rejected(error)
2424
}
2525
return of(ctx)

servers/mu/src/domain/api/sendAssign.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export function sendAssignWith ({
6666
const whitelist = fetchProcessWhitelist ? fetchProcessWhitelist() : {}
6767
if (whitelist && Object.keys(whitelist).length > 0 && !whitelist[ctx.assign.processId]) {
6868
const error = new Error('Forbidden, process not whitelisted')
69-
error.code = 403
69+
error.status = 403
7070
return Rejected(error)
7171
}
7272
return of(ctx)

servers/mu/src/domain/api/sendDataItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ export function sendDataItemWith ({
323323
const whitelist = fetchProcessWhitelist ? fetchProcessWhitelist() : {}
324324
if (whitelist && !whitelist[ctx.dataItem.target]) {
325325
const error = new Error('Forbidden, process not whitelisted')
326-
error.code = 403
326+
error.status = 403
327327
return Rejected(error)
328328
}
329329
/*

0 commit comments

Comments
 (0)