a
This commit is contained in:
parent
a9da046d45
commit
e3a4007ab6
@ -34,7 +34,7 @@ const extraMethods = {
|
||||
include: [{ model: models.Entity,
|
||||
include: [{ model: models.EntityType, as:'types', where:{alias: 'partner'}}],
|
||||
}],
|
||||
order: [[{ model: models.Entity }, 'name', 'asc'], ['description', 'asc']],
|
||||
order: [[{ model: models.Entity }, 'name', 'asc'], ['description', 'desc']],
|
||||
})
|
||||
},
|
||||
|
||||
@ -45,7 +45,7 @@ const extraMethods = {
|
||||
model: models.Entity,
|
||||
include: [{ model: models.EntityType, as: 'types', where: { alias: 'college' } }],
|
||||
}],
|
||||
order: [[{ model: models.Entity }, 'name', 'asc']],
|
||||
order: [[{ model: models.Entity }, 'name', 'asc'], ['description', 'desc']],
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user