Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:Unipisa/dm-manager into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
paolini committed Oct 27, 2023
2 parents 132137b + 54db9af commit b93c8ab
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions server/controllers/public/visits.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ async function visitsQuery(req) {
...personRoomAssignmentPipeline(),
{$lookup: {
from: 'institutions',
localField: 'affiliations',
localField: 'person.affiliations',
foreignField: '_id',
as: 'affiliations',
as: 'person.affiliations',
pipeline: [
{$project: {
_id: 0,
_id: 1,
name: 1,
code: 1,
city: 1,
Expand All @@ -41,6 +41,9 @@ async function visitsQuery(req) {
person: {
firstName: 1,
lastName: 1,
affiliations: {
name: 1
}
},
roomAssignment: {
room: {
Expand Down

0 comments on commit b93c8ab

Please sign in to comment.