Skip to content

Commit

Permalink
refactor: Include partner institutions in get_all_activities_catalog …
Browse files Browse the repository at this point in the history
…response
  • Loading branch information
FelipeCarillo committed May 24, 2024
1 parent 630486a commit e6c0ea8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/repositories/database/repositories/ActivityRepo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,11 @@ export class ActivityRepo implements IActivityRepo {
model: Institution,
as: 'institution',
include: [{
model: InstitutionImageDB, as: 'images', limit: 1, order: [['id', 'ASC']], attributes: ['image']
}],
limit: 1
model: InstitutionImageDB, as: 'images',
limit: 1,
order: [['id', 'ASC']],
attributes: ['image']
}]
}]
}],
where: {
Expand Down

0 comments on commit e6c0ea8

Please sign in to comment.