fix: more specific columns for sort
This commit is contained in:
parent
67916fca80
commit
cc0a263325
16 changed files with 17 additions and 17 deletions
|
@ -13,7 +13,7 @@ export default abstract class CalendarService {
|
|||
.getRepository(calendar)
|
||||
.createQueryBuilder("calendar")
|
||||
.leftJoinAndSelect("calendar.type", "type")
|
||||
.orderBy("starttime", "ASC")
|
||||
.orderBy("calendar.starttime", "ASC")
|
||||
.getMany()
|
||||
.then((res) => {
|
||||
return res;
|
||||
|
|
|
@ -12,7 +12,7 @@ export default abstract class NewsletterService {
|
|||
return await dataSource
|
||||
.getRepository(newsletter)
|
||||
.createQueryBuilder("newsletter")
|
||||
.orderBy("createdAt", "DESC")
|
||||
.orderBy("newsletter.createdAt", "DESC")
|
||||
.offset(offset)
|
||||
.limit(count)
|
||||
.getManyAndCount()
|
||||
|
|
|
@ -14,7 +14,7 @@ export default abstract class ProtocolService {
|
|||
.createQueryBuilder("protocol")
|
||||
.offset(offset)
|
||||
.limit(count)
|
||||
.orderBy("date", "DESC")
|
||||
.orderBy("protocol.date", "DESC")
|
||||
.getManyAndCount()
|
||||
.then((res) => {
|
||||
return res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue