From f7b56dd71b8cbbaaf06590fc45b81bb22ddb0e55 Mon Sep 17 00:00:00 2001 From: richard483 Date: Mon, 22 Jan 2024 02:47:57 +0700 Subject: [PATCH] updated getContractListByCompanyId filter --- package-lock.json | 4 ++-- package.json | 2 +- src/contract/contract.repository.ts | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index bfbd00f..a06d996 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "backend-8tech", - "version": "4.1.8", + "version": "4.1.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "backend-8tech", - "version": "4.1.8", + "version": "4.1.9", "license": "UNLICENSED", "dependencies": { "@nestjs/common": "^9.4.3", diff --git a/package.json b/package.json index cb0e0a1..45c9570 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "backend-8tech", - "version": "4.1.8", + "version": "4.1.9", "description": "", "author": "8tech", "private": true, diff --git a/src/contract/contract.repository.ts b/src/contract/contract.repository.ts index ed29bc2..5d5aa25 100644 --- a/src/contract/contract.repository.ts +++ b/src/contract/contract.repository.ts @@ -96,7 +96,9 @@ export class ContractRepository { }, }, NOT: { - status: 'REJECTED' || 'PENDING', + status: { + in: ['PENDING', 'REJECTED'], + }, }, }, orderBy: {