fixbug
This commit is contained in:
parent
833c685954
commit
958b3688f5
|
|
@ -80,14 +80,14 @@ function ($attribute, $value, $fail) {
|
||||||
|
|
||||||
$max_received_at = Mail::where([
|
$max_received_at = Mail::where([
|
||||||
['to_hash', '=', $to_hash],
|
['to_hash', '=', $to_hash],
|
||||||
['received_at', '>=', $key],
|
['received_at', '>', $key],
|
||||||
])
|
])
|
||||||
->orderBy('received_at', 'desc')
|
->orderBy('received_at', 'desc')
|
||||||
->value("received_at");
|
->value("received_at") ?? $key;
|
||||||
|
|
||||||
$new_email_list = Mail::where([
|
$new_email_list = Mail::where([
|
||||||
['to_hash', '=', $to_hash],
|
['to_hash', '=', $to_hash],
|
||||||
['received_at', '>=', $key],
|
['received_at', '>', $key],
|
||||||
])
|
])
|
||||||
->select([
|
->select([
|
||||||
'id as key',
|
'id as key',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user