fix: tracking logs for issue activity (#2213)

This commit is contained in:
Bavisetti Narayan 2023-09-19 19:46:03 +05:30 committed by GitHub
parent 405ef9314f
commit d603c1e8f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -518,6 +518,11 @@ def update_issue_activity(
"closed_to": track_closed_to, "closed_to": track_closed_to,
} }
requested_data = json.loads(requested_data) if requested_data is not None else None
current_instance = (
json.loads(current_instance) if current_instance is not None else None
)
for key in requested_data: for key in requested_data:
func = ISSUE_ACTIVITY_MAPPER.get(key, None) func = ISSUE_ACTIVITY_MAPPER.get(key, None)
if func is not None: if func is not None: