fix db query
This commit is contained in:
@@ -79,7 +79,7 @@ sub by_field {
|
|||||||
{
|
{
|
||||||
order_by => [qw/ me.dns me.ip /],
|
order_by => [qw/ me.dns me.ip /],
|
||||||
join => 'device_ips',
|
join => 'device_ips',
|
||||||
group_by => 'me.ip',
|
distinct => 1,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -110,7 +110,7 @@ sub by_any {
|
|||||||
{
|
{
|
||||||
order_by => [qw/ me.dns me.ip /],
|
order_by => [qw/ me.dns me.ip /],
|
||||||
join => 'device_ips',
|
join => 'device_ips',
|
||||||
group_by => 'me.ip',
|
distinct => 1,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user