Skip to content

Commit

Permalink
fix sync bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrishabh17 committed Aug 2, 2024
1 parent a557998 commit e22f91b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/mappings/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ def sync_custom_field(
"""

query = {
'order': 'updated_at.desc',
'is_custom': 'eq.true',
'type': 'eq.SELECT',
'is_enabled': 'eq.true'
'order': 'updated_at.desc',
'is_custom': 'eq.true',
'type': 'eq.SELECT',
'is_enabled': 'eq.true'
}
custom_field_gen = self.platform.v1beta.admin.expense_fields.list_all(query)
if source_type:
Expand All @@ -87,7 +87,7 @@ def sync_custom_field(
if source_type and source_type == custom_field['field_name']:
source_values.extend(custom_field['options'])

if distinct_custom_fields and sync_expense_custom_field_names:
if distinct_custom_fields:
field_mapping.custom_fields = distinct_custom_fields
field_mapping.save()

Expand Down

0 comments on commit e22f91b

Please sign in to comment.