增加自动部署

main
rustdreamer 2 years ago
parent 5c4e6a1e69
commit 4c8b727186

@ -98,11 +98,11 @@ steps:
port: 22 port: 22
command_timeout: 300s command_timeout: 300s
script: script:
- cd /home/runtime/apps/qunsense - cd /home/runtime/apps/visitor
- docker compose up -d api - docker compose up -d api
when: when:
event: [push, pull_request] event: [push, pull_request]
branch: [development] branch: [development, main]
# - name: notify # - name: notify
# image: fifsky/drone-wechat-work # image: fifsky/drone-wechat-work

@ -519,7 +519,7 @@ export class AppController {
throw new BadRequestException("数据不存在") throw new BadRequestException("数据不存在")
} }
if (node_other_visitor.end_time) { if (node_other_visitor.end_time) {
throw new BadRequestException("重复签退") throw new BadRequestException("拜访已结束")
} }
node_other_visitor.end_time = new Date(); node_other_visitor.end_time = new Date();
const result = await this.nodeOtherVisitorRepository.save(node_other_visitor); const result = await this.nodeOtherVisitorRepository.save(node_other_visitor);

Loading…
Cancel
Save