Skip to content

Commit

Permalink
easier to send orgId for both test and prod
Browse files Browse the repository at this point in the history
  • Loading branch information
gregv committed Jul 31, 2024
1 parent 82bfa37 commit 1e189e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/messages/messages_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ def get_profile_by_id(id):


def getOrgId(req):
# Ref: https://docs.propelauth.com/reference/backend-apis/flask#req-to-org-id
return "77f70865-7da9-4588-850b-a5ebb6974410" # PropelAuth wants you to pass this in as a req param, but let's keep it simple
# Get the org_id from the req
return req.headers.get("X-Org-Id")


# Used to provide profile details - user must be logged in
Expand Down

0 comments on commit 1e189e3

Please sign in to comment.