Skip to content

Commit

Permalink
api PR comments commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyle authored and Fyle committed Sep 15, 2023
1 parent 746685b commit 158846c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions apps/fyle/actions.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from apps.mappings.connector import PlatformConnector


def sync_fyle_dimensions(attribute_type: str, workspace_id: int):
def sync_fyle_dimensions(workspace_id: int):
"""
Sync Attributes will be called for syncing the attribute's data from the fyle to qbd db
"""

qbd_connection = PlatformConnector(workspace_id=workspace_id)

if attribute_type == 'CORPORATE_CARD':
qbd_connection.sync_corporate_card()
qbd_connection.sync_corporate_card()
2 changes: 1 addition & 1 deletion apps/fyle/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ def post(self, request, *args, **kwargs):
"""
Sync Data From Fyle
"""
sync_fyle_dimensions('CORPORATE_CARD', workspace_id=kwargs['workspace_id'])
sync_fyle_dimensions(workspace_id=kwargs['workspace_id'])

return Response(status=status.HTTP_200_OK)

0 comments on commit 158846c

Please sign in to comment.