mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
fix update peer last_action
This commit is contained in:
@@ -739,7 +739,7 @@ class TrackerRepository extends BaseRepository
|
|||||||
$peer->downloaded = $queries['downloaded'];
|
$peer->downloaded = $queries['downloaded'];
|
||||||
|
|
||||||
if ($peer->exists) {
|
if ($peer->exists) {
|
||||||
$peer->prev_action = $peer->last_action;
|
$peer->prev_action = DB::raw('last_action');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($queries['event'] == 'started' || !$peer->exists) {
|
if ($queries['event'] == 'started' || !$peer->exists) {
|
||||||
|
|||||||
Reference in New Issue
Block a user