Skip to content

Commit

Permalink
News item author is now populated on save
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitez committed Nov 18, 2018
1 parent 6bb7bb5 commit bbd65ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/modules/feeds/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ export async function create(ctx) {
const entity = new Feed(entityFields);
await entity.save();
ctx.body = {
feed: entity
feed: await Feed.populate(entity, {
path: "creator",
select: "displayName"
})
};
}

Expand Down

0 comments on commit bbd65ab

Please sign in to comment.