修改为 find

main
rustdreamer 2 years ago
parent 6553f99056
commit bf946671db

@ -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"

Loading…
Cancel
Save