Skip to content

Commit b5ab468

Browse files
committed
Relay staff email to shipping service
1 parent 505f0ce commit b5ab468

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
},
88
"shipping_service": {
99
"backend_url": "https://sample-shipping-staging.diamond.ac.uk",
10-
"frontend_url": "https://sample-shipping-staging.diamond.ac.uk"
10+
"frontend_url": "https://sample-shipping-staging.diamond.ac.uk",
11+
"staff_email": "guilherme.de-freitas@diamond.ac.uk"
1112
},
1213
"alerts": {
1314
"contact_email": "pato@diamond.ac.uk",

src/scaup/crud/shipments.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ def build_shipment_request(shipmentId: int, token: str):
252252
)
253253

254254
built_request_body = {
255+
"staff_notification_email": Config.shipping_service.staff_email,
255256
"session_number": shipment.visitNumber,
256257
"proposal": proposal_reference,
257258
"external_id": shipment.externalId,

src/scaup/utils/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class ShippingService:
3737
backend_url: str = "https://localtest.diamond.ac.uk/"
3838
secret: str = "no-secret"
3939
callback_url: str = "https://localhost/api"
40+
staff_email: str | None = None
4041

4142

4243
@dataclass

0 commit comments

Comments
 (0)