Skip to content

Commit

Permalink
Aftral[premieroctet#120]: fixed message preput to take account of parent
Browse files Browse the repository at this point in the history
  • Loading branch information
SeghirOumo committed Aug 28, 2024
1 parent 8dbd810 commit 6480388
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/web/server/plugins/aftral-lms/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

Expand Down

0 comments on commit 6480388

Please sign in to comment.