|
|
|
@ -313,16 +313,19 @@ export class AppController {
|
|
|
|
if (area_code) {
|
|
|
|
if (area_code) {
|
|
|
|
where.to_area_code = area_code;
|
|
|
|
where.to_area_code = area_code;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// console.log("where", where)
|
|
|
|
const node_other_visitors: any = await this.nodeOtherVisitorRepository.find({
|
|
|
|
const node_other_visitors: any = await this.nodeOtherVisitorRepository.find({
|
|
|
|
where,
|
|
|
|
where,
|
|
|
|
order: {
|
|
|
|
order: {
|
|
|
|
created_date: "DESC"
|
|
|
|
created_date: "DESC"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
// console.log("node_other_visitors", node_other_visitors)
|
|
|
|
await bluebird.each(node_other_visitors, async (item) => {
|
|
|
|
await bluebird.each(node_other_visitors, async (item) => {
|
|
|
|
const node_visitor = await this.nodeVisitorRepository.findOne({
|
|
|
|
const node_visitor = await this.nodeVisitorRepository.findOne({
|
|
|
|
where: { id: item.node_visitor_id }
|
|
|
|
where: { id: item.node_visitor_id }
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
// console.log("node_visitor", node_visitor)
|
|
|
|
// console.log('node_visitor', node_visitor)
|
|
|
|
// console.log('node_visitor', node_visitor)
|
|
|
|
// console.log('new Date(node_visitor.start_date)', new Date(node_visitor.start_date))
|
|
|
|
// console.log('new Date(node_visitor.start_date)', new Date(node_visitor.start_date))
|
|
|
|
// console.log('new Date(node_visitor.end_date)', new Date(node_visitor.end_date))
|
|
|
|
// console.log('new Date(node_visitor.end_date)', new Date(node_visitor.end_date))
|
|
|
|
|