Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix 500 internal error #217

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/mappings/imports/queues.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ def chain_import_fields_to_fyle(workspace_id):
Chain import fields to Fyle
:param workspace_id: Workspace Id
"""
import_settings = ImportSetting.objects.filter(workspace_id=workspace_id).first()

if not import_settings:
return

mapping_settings = MappingSetting.objects.filter(workspace_id=workspace_id, import_to_fyle=True)
import_settings = ImportSetting.objects.get(workspace_id=workspace_id)
dependent_field_settings = DependentFieldSetting.objects.filter(workspace_id=workspace_id, is_import_enabled=True).first()

import_code_fields = import_settings.import_code_fields
Expand Down
Loading