From 9879c671759222cdc6283a4edf9a1544af3012c1 Mon Sep 17 00:00:00 2001 From: Bhav Beri Date: Tue, 12 Nov 2024 22:26:45 +0530 Subject: [PATCH] Pass inter_communication_secret to signed-url call --- queries.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/queries.py b/queries.py index 8ba2b75..f8893e5 100644 --- a/queries.py +++ b/queries.py @@ -1,4 +1,5 @@ import json +import os from typing import List import requests @@ -10,6 +11,8 @@ # import all models and types from otypes import CCRecruitmentType, Info, SignedURL +inter_communication_secret = os.getenv("INTER_COMMUNICATION_SECRET") + # fetch signed url from the files service @strawberry.field @@ -20,7 +23,11 @@ def signedUploadURL(info: Info) -> SignedURL: # make request to files api response = requests.get( - "http://files/signed-url", params={"user": json.dumps(user)} + "http://files/signed-url", + params={ + "user": json.dumps(user), + "inter_communication_secret": inter_communication_secret, + }, ) # error handling