Skip to content

Commit

Permalink
added ignoredWishes field to participator model and controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Mipronimo committed Jul 25, 2024
1 parent 6659023 commit d228b79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/participator.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ export async function findAllParticipators() {
let participator = participators.find((participator) => participator.orderId === value.orderId && participator.positionId === value.positionId);
participatorAnswers[key] = {...{
preferenceId: participator?.preferenceId,
status: value.paymentStatus === 'c' ? 2 : (participator?.status || 0)
status: value.paymentStatus === 'c' ? 2 : (participator?.status || 0),
ignoredWishes: participator?.ignoredWishes
}, ...value};
}
return participatorAnswers;
Expand Down
4 changes: 4 additions & 0 deletions src/models/participator.model.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ export default sequelize.define('Participator', {
key: 'id'
}
},
ignoredWishes: {
type: DataTypes.STRING,
allowNull: true
}
});

0 comments on commit d228b79

Please sign in to comment.