From 0432f89b224d54a005e70dde49c1a5ae1d4e64ca Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 26 Sep 2024 11:13:37 +0700 Subject: [PATCH] sort command --- src/controllers/CommandController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index ba9e970b..7dd3109d 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -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();