Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- router.get('/:id', (req, res) => {
- Models.Community.where({
- id: req.params.id,
- }).fetch({
- require: true,
- withRelated: ['profiles'],
- }).then((data) => {
- res.render('app/communities/index', {
- community: data.attributes,
- profiles: data.relations.profiles.models,
- });
- });
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement