Commit f340d55a by dragonfi

Correctly return 'success' in publish_event handler

parent a7c7b0e5
......@@ -150,7 +150,7 @@ class MentoringBlock(XBlockWithLightChildren):
except KeyError as e:
return {'result': 'error', 'message': 'Missing event_type in JSON data'}
self._publish_event(event_type, data)
return self._publish_event(event_type, data)
def _publish_event(self, event_type, data):
data['user_id'] = self.scope_ids.user_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment