Skip to content

Commit

Permalink
Fix Xero connections/disconnections (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Nov 14, 2022
1 parent cba9346 commit 3120435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/workspaces/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def get(self, request, **kwargs):
Get Xero Credentials in Workspace
"""
try:
xero_credentials = XeroCredentials.objects.get(workspace_id=kwargs['workspace_id'], is_expired=False)
xero_credentials = XeroCredentials.objects.get(workspace_id=kwargs['workspace_id'], is_expired=False, refresh_token__isnull=False)

return Response(
data=XeroCredentialSerializer(xero_credentials).data,
Expand Down

0 comments on commit 3120435

Please sign in to comment.