diff --git a/backend/web/server/plugins/aftral-lms/functions.js b/backend/web/server/plugins/aftral-lms/functions.js index f85ed13a2e..ce9b70c6e2 100644 --- a/backend/web/server/plugins/aftral-lms/functions.js +++ b/backend/web/server/plugins/aftral-lms/functions.js @@ -367,6 +367,9 @@ const prePut = async ({model, id, params, user, skip_validation}) => { params.trainees=trainees.map(t=>t._id) } } + if(model == `message`) { + params.conversation = params.parent + } return {model, id, params, user, skip_validation} }