sort command

This commit is contained in:
kittapath 2024-09-26 11:13:37 +07:00
parent c0b920819d
commit 0432f89b22

View file

@ -110,7 +110,7 @@ export class CommandController extends Controller {
: `${commandTypeId}`,
},
)
.orderBy("commandSalary.createdAt", "ASC")
.orderBy("command.createdAt", "ASC")
.skip((page - 1) * pageSize)
.take(pageSize)
.getManyAndCount();