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