Skip to content

Commit

Permalink
Sosynpl[premieroctet#150]: changed model checking to include user
Browse files Browse the repository at this point in the history
  • Loading branch information
SeghirOumo committed Jul 24, 2024
1 parent 91ec397 commit d7bc049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/web/server/plugins/sosynpl/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,9 @@ const preProcessGet = async ({ model, fields, id, user, params }) => {
return Conversation.findById(id)
.then(async(conv) => {
if(!conv){
const model = await getModel(id, ['mission','application','customerFreelance'])
const model = await getModel(id, ['mission','application','customerFreelance','user'])
let customerId, freelanceId, applicationId, partnerId
if(model == 'customerFreelance') {
if(model == 'customerFreelance' || model == 'user') {
partnerId = id
}
else if(model == 'mission') {
Expand Down

0 comments on commit d7bc049

Please sign in to comment.