move user-id for codeocean-events into in_context

This commit is contained in:
Ralf Teusner
2017-08-04 16:39:23 +02:00
parent 38c6e29cbf
commit f877cd675a

View File

@ -155,9 +155,9 @@ configureEditors: function () {
if (!same) {
this.publishCodeOceanEvent("codeocean_editor_paste", {
text: pasteObject.text,
codeocean_user_id: $('#editor').data('user-id'),
exercise: $('#editor').data('exercise-id'),
file_id: "1"
});
}
},
@ -390,9 +390,7 @@ configureEditors: function () {
var payload = {
user: {
type: 'User',
uuid: $('#editor').data('user-id'),
external_id: $('#editor').data('user-external-id')
uuid: $('#editor').data('user-external-id')
},
verb: {
type: eventName