OrderBy
This commit is contained in:
parent
72ad91ff00
commit
0dc775e758
|
@ -19,7 +19,8 @@ class PrinterController {
|
||||||
orderBy: { timestamp: 'desc' },
|
orderBy: { timestamp: 'desc' },
|
||||||
take: 1
|
take: 1
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
orderBy: { network: { cidr: 'asc' } }
|
||||||
})
|
})
|
||||||
return res.json(printers)
|
return res.json(printers)
|
||||||
}
|
}
|
||||||
|
@ -36,7 +37,8 @@ class PrinterController {
|
||||||
orderBy: { timestamp: 'desc' },
|
orderBy: { timestamp: 'desc' },
|
||||||
take: 1
|
take: 1
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
orderBy: { network: { cidr: 'asc' } }
|
||||||
})
|
})
|
||||||
|
|
||||||
return res.json(printers)
|
return res.json(printers)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user