diff --git a/src/controllers/ProfileEditController.ts b/src/controllers/ProfileEditController.ts index e41c0194..c30a23e9 100644 --- a/src/controllers/ProfileEditController.ts +++ b/src/controllers/ProfileEditController.ts @@ -63,7 +63,7 @@ export class ProfileEditController extends Controller { ); }), ) - .orderBy("ProfileEdit.createdAt", "ASC") + .orderBy("ProfileEdit.createdAt", "DESC") .skip((page - 1) * pageSize) .take(pageSize) .getManyAndCount(); @@ -117,7 +117,7 @@ export class ProfileEditController extends Controller { ); }), ) - .orderBy("ProfileEdit.createdAt", "ASC") + .orderBy("ProfileEdit.createdAt", "DESC") .skip((page - 1) * pageSize) .take(pageSize) .getManyAndCount(); diff --git a/src/controllers/ProfileEditEmployeeController.ts b/src/controllers/ProfileEditEmployeeController.ts index 7d8ef83e..99356803 100644 --- a/src/controllers/ProfileEditEmployeeController.ts +++ b/src/controllers/ProfileEditEmployeeController.ts @@ -68,7 +68,7 @@ export class ProfileEditEmployeeController extends Controller { ); }), ) - .orderBy("ProfileEdit.createdAt", "ASC") + .orderBy("ProfileEdit.createdAt", "DESC") .skip((page - 1) * pageSize) .take(pageSize) .getManyAndCount(); @@ -122,7 +122,7 @@ export class ProfileEditEmployeeController extends Controller { ); }), ) - .orderBy("ProfileEdit.createdAt", "ASC") + .orderBy("ProfileEdit.createdAt", "DESC") .skip((page - 1) * pageSize) .take(pageSize) .getManyAndCount();