move user-id for codeocean-events into in_context
This commit is contained in:
@ -155,9 +155,9 @@ configureEditors: function () {
|
|||||||
if (!same) {
|
if (!same) {
|
||||||
this.publishCodeOceanEvent("codeocean_editor_paste", {
|
this.publishCodeOceanEvent("codeocean_editor_paste", {
|
||||||
text: pasteObject.text,
|
text: pasteObject.text,
|
||||||
|
codeocean_user_id: $('#editor').data('user-id'),
|
||||||
exercise: $('#editor').data('exercise-id'),
|
exercise: $('#editor').data('exercise-id'),
|
||||||
file_id: "1"
|
file_id: "1"
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -390,9 +390,7 @@ configureEditors: function () {
|
|||||||
|
|
||||||
var payload = {
|
var payload = {
|
||||||
user: {
|
user: {
|
||||||
type: 'User',
|
uuid: $('#editor').data('user-external-id')
|
||||||
uuid: $('#editor').data('user-id'),
|
|
||||||
external_id: $('#editor').data('user-external-id')
|
|
||||||
},
|
},
|
||||||
verb: {
|
verb: {
|
||||||
type: eventName
|
type: eventName
|
||||||
|
Reference in New Issue
Block a user