From bf946671db5229248df1a2b692eb809f201d4437 Mon Sep 17 00:00:00 2001 From: rustdreamer Date: Wed, 27 Sep 2023 13:44:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA=20find?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.controller.ts b/src/app.controller.ts index c3c0d00..d575e60 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -231,7 +231,7 @@ export class AppController { async getVisiotr(@Query() { identity_card_no }: QueryVisitorByNumberDto, @Req() req: any) { let date = new Date().toDateString(); let node_other_visitor; - const node_other_visitors: any = await this.nodeOtherVisitorRepository.findOne({ + const node_other_visitors: any = await this.nodeOtherVisitorRepository.find({ where: { identity_card_no, end_time: IsNull() }, order: { created_date: "DESC"