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();