Skip to content

Commit

Permalink
fix(user): return user's application status (#458)
Browse files Browse the repository at this point in the history
* feat(user): return user's application status

* chore: fix lint

Co-authored-by: Rik Smale <[email protected]>
  • Loading branch information
LeonVreling and WikiRik authored Feb 8, 2021
1 parent 1849be1 commit ab5fae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ exports.listUserAppliedEvents = async (req, res) => {
subQuery: false,
include: [{
model: Application,
attributes: ['user_id'], // we only need user_id here
attributes: ['user_id', 'status'], // pass along user_id, as well as the status of the application
required: true
}]
});
Expand Down

0 comments on commit ab5fae3

Please sign in to comment.