Skip to content

Commit

Permalink
Opinion added to includevotes attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoJokhan committed Aug 30, 2023
1 parent f4dffc1 commit 89a940d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/Idea.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ module.exports = function (db, sequelize, DataTypes) {
includeVotes: {
include: [{
model: db.Vote,
attributes: ['id'],
attributes: ['id', 'ideaId', 'userId', 'opinion'],
as: 'votes',
}]
},
Expand Down

1 comment on commit 89a940d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Published new image: openstad/api:feature-import-arguments-and-votes-with-ideas-89a940d

Please sign in to comment.