Now correctly showing packet receive time, and sending Notifications based on the packet address, not the node address
This commit is contained in:
@@ -22,6 +22,7 @@ final class Echomail extends Model implements Packet
|
||||
private const LOGKEY = 'ME-';
|
||||
private Collection $set_seenby;
|
||||
private Collection $set_path;
|
||||
private Carbon $set_recvtime;
|
||||
private string $set_pkt;
|
||||
private bool $no_export = FALSE;
|
||||
|
||||
@@ -51,6 +52,7 @@ final class Echomail extends Model implements Packet
|
||||
case 'no_export':
|
||||
case 'set_path':
|
||||
case 'set_pkt':
|
||||
case 'set_recvtime':
|
||||
case 'set_seenby':
|
||||
$this->{$key} = $value;
|
||||
break;
|
||||
@@ -87,9 +89,10 @@ final class Echomail extends Model implements Packet
|
||||
}
|
||||
|
||||
// Our last node in the path is our sender
|
||||
if (isset($model->set_pkt)) {
|
||||
DB::update('UPDATE echomail_path set recv_pkt=? where address_id=? and echomail_id=?',[
|
||||
if (isset($model->set_pkt) && isset($model->set_recvtime)) {
|
||||
DB::update('UPDATE echomail_path set recv_pkt=?,recv_at=? where address_id=? and echomail_id=?',[
|
||||
$model->set_pkt,
|
||||
$model->set_recvtime,
|
||||
$model->set_path->last(),
|
||||
$model->id,
|
||||
]);
|
||||
|
Reference in New Issue
Block a user