From 4c8b72718659c3615bf987d5ca0f3c2c147b0222 Mon Sep 17 00:00:00 2001 From: rustdreamer Date: Tue, 27 Feb 2024 16:06:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=8A=A8=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 ++-- src/app.controller.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 752e565..1415826 100644 --- a/.drone.yml +++ b/.drone.yml @@ -98,11 +98,11 @@ steps: port: 22 command_timeout: 300s script: - - cd /home/runtime/apps/qunsense + - cd /home/runtime/apps/visitor - docker compose up -d api when: event: [push, pull_request] - branch: [development] + branch: [development, main] # - name: notify # image: fifsky/drone-wechat-work diff --git a/src/app.controller.ts b/src/app.controller.ts index 65def05..aa8f01a 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -519,7 +519,7 @@ export class AppController { throw new BadRequestException("数据不存在") } if (node_other_visitor.end_time) { - throw new BadRequestException("重复签退") + throw new BadRequestException("拜访已结束") } node_other_visitor.end_time = new Date(); const result = await this.nodeOtherVisitorRepository.save(node_other_visitor);