From 4a2beca73c85e78d78852741ad6d9e03cc4c779a Mon Sep 17 00:00:00 2001 From: richard483 Date: Fri, 26 Jan 2024 02:01:40 +0700 Subject: [PATCH 1/2] update applied job api sort --- package-lock.json | 4 ++-- package.json | 2 +- src/users/user.repository.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index a0b1b67..3aff2f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "backend-8tech", - "version": "4.2.5", + "version": "4.2.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "backend-8tech", - "version": "4.2.5", + "version": "4.2.6", "license": "UNLICENSED", "dependencies": { "@nestjs/common": "^9.4.3", diff --git a/package.json b/package.json index 54d7f99..43e2161 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "backend-8tech", - "version": "4.2.5", + "version": "4.2.6", "description": "", "author": "8tech", "private": true, diff --git a/src/users/user.repository.ts b/src/users/user.repository.ts index 41d958c..559d3cb 100644 --- a/src/users/user.repository.ts +++ b/src/users/user.repository.ts @@ -150,7 +150,7 @@ export class UserRepository { payment: true, }, orderBy: { - createdAt: 'asc', + updatedAt: 'asc', }, }, _count: { From 30bf4b5d91a214ed2f6d633952e8b16dc02527a4 Mon Sep 17 00:00:00 2001 From: richard483 Date: Fri, 26 Jan 2024 02:06:08 +0700 Subject: [PATCH 2/2] changed applied list order --- src/users/user.repository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/users/user.repository.ts b/src/users/user.repository.ts index 559d3cb..6ca61ae 100644 --- a/src/users/user.repository.ts +++ b/src/users/user.repository.ts @@ -150,7 +150,7 @@ export class UserRepository { payment: true, }, orderBy: { - updatedAt: 'asc', + updatedAt: 'desc', }, }, _count: {