Skip to content

Commit

Permalink
update server fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
calellowitz committed Nov 28, 2024
1 parent a17d7e0 commit 7feba02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messaging/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_current_message_server(request):
encoded_credentials = auth_header.split(' ')[1]
decoded_credentials = base64.b64decode(encoded_credentials).decode('utf-8')
client_id, client_secret = decoded_credentials.split(':')
server = get_object_or_404(MessageServer, oauth_application__client_id=client_id)
server = get_object_or_404(MessageServer, server_id=client_id)
return server


Expand Down

0 comments on commit 7feba02

Please sign in to comment.