File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
servers/mu/src/domain/api Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 /*
You can’t perform that action at this time.
0 commit comments