Skip to content

Commit d9a22db

Browse files
authored
fix: set migrated_to_rest_api cache before sync (#924)
1 parent 068f952 commit d9a22db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sage_intacct/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def validate_rest_api_connection(workspace_id: int) -> None:
163163
migrated_to_rest_api=True,
164164
updated_at=datetime.now(timezone.utc)
165165
)
166-
sync_dimensions(workspace_id=workspace_id)
167166
cache.set(CacheKeyEnum.FEATURE_CONFIG_MIGRATED_TO_REST_API.value.format(workspace_id=workspace_id), True, 172800)
167+
sync_dimensions(workspace_id=workspace_id)
168168
except Exception as e:
169169
logger.info('REST API is not working for workspace_id - %s, error - %s', workspace_id, e)

0 commit comments

Comments
 (0)