fix update peer last_action

This commit is contained in:
xiaomlove
2022-04-08 22:43:43 +08:00
parent 7e24dad00c
commit ea48fec2df

View File

@@ -739,7 +739,7 @@ class TrackerRepository extends BaseRepository
$peer->downloaded = $queries['downloaded'];
if ($peer->exists) {
$peer->prev_action = $peer->last_action;
$peer->prev_action = DB::raw('last_action');
}
if ($queries['event'] == 'started' || !$peer->exists) {