refactor: remove redundant orderBy clauses in getAllServizioAnnunci function
This commit is contained in:
parent
c7db99376d
commit
d2548e8854
1 changed files with 6 additions and 7 deletions
|
|
@ -649,13 +649,12 @@ export const getAllServizioAnnunci = async (userId: UsersId) => {
|
|||
//ignora annunci che non sono disponibili
|
||||
.where("annunci.web", "=", true)
|
||||
.where("annunci.stato", "!=", "Sospeso")
|
||||
.orderBy("servizio_annunci.user_confirmed_at", (ob) =>
|
||||
ob.asc().nullsLast(),
|
||||
)
|
||||
.orderBy("servizio_annunci.open_contatti_at", (ob) =>
|
||||
ob.asc().nullsFirst(),
|
||||
)
|
||||
|
||||
// .orderBy("servizio_annunci.user_confirmed_at", (ob) =>
|
||||
// ob.asc().nullsLast(),
|
||||
// )
|
||||
// .orderBy("servizio_annunci.open_contatti_at", (ob) =>
|
||||
// ob.asc().nullsFirst(),
|
||||
// )
|
||||
.orderBy("servizio_annunci.created_at", "asc")
|
||||
.whereRef(
|
||||
"servizio_annunci.servizio_id",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue