Skip to content

Commit

Permalink
minor bug fix (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 authored Mar 15, 2024
1 parent 32d1585 commit 3dc8687
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions apps/orgs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from apps.orgs.models import FyleCredential, Org
from apps.users.helpers import PlatformConnector
from apps.orgs.models import FyleCredential
from apps.orgs.exceptions import handle_fyle_exceptions
from django.conf import settings

from apps.orgs.models import FyleCredential, Org
Expand Down
2 changes: 0 additions & 2 deletions apps/orgs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
from admin_settings.utils import LookupFieldMixin
from apps.orgs.serializers import ExpenseAttributeSerializer
from apps.orgs.utils import import_categories
from apps.orgs.exceptions import handle_fyle_exceptions
from apps.orgs.actions import get_admin_employees
from apps.fyle_hrms_mappings.models import ExpenseAttribute
from apps.names import *
Expand Down Expand Up @@ -99,7 +98,6 @@ class SyncCategories(generics.CreateAPIView):
authentication_classes = []
permission_classes = []

@handle_fyle_exceptions(task_name='import categories name from fyle')
def create(self, request, *args, **kwargs):

async_task(import_categories, org_id=kwargs['org_id'])
Expand Down

0 comments on commit 3dc8687

Please sign in to comment.