修改返回

main
rustdreamer 2 years ago
parent 4c8b727186
commit f5d5dab219

@ -519,7 +519,11 @@ export class AppController {
throw new BadRequestException("数据不存在")
}
if (node_other_visitor.end_time) {
throw new BadRequestException("拜访已结束")
// throw new BadRequestException("拜访已结束")
return {
code: 400,
message: "拜访已结束"
}
}
node_other_visitor.end_time = new Date();
const result = await this.nodeOtherVisitorRepository.save(node_other_visitor);

Loading…
Cancel
Save