orderBy
This commit is contained in:
parent
67c54e3273
commit
c9c14f052b
8 changed files with 18 additions and 6 deletions
|
|
@ -41,7 +41,7 @@ export class PrefixController extends Controller {
|
|||
async Get() {
|
||||
const _prefix = await this.prefixRepository.find({
|
||||
select: ["id", "name", "createdAt", "lastUpdatedAt", "createdFullName", "lastUpdateFullName"],
|
||||
order: { createdAt: "ASC" },
|
||||
order: { name: "ASC" },
|
||||
});
|
||||
// if (!_prefix) {
|
||||
// return new HttpSuccess([]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue