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);