mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-24 03:59:08 -05:00
fix: history updates
Only update the history updated_at column on announces
This commit is contained in:
@@ -63,8 +63,12 @@ class PeerController extends Controller
|
||||
->delete();
|
||||
|
||||
$user->history()
|
||||
->where('active', '=', 1)
|
||||
->where('updated_at', '<', $cutoff)
|
||||
->update(['active' => false]);
|
||||
->update([
|
||||
'active' => 0,
|
||||
'updated_at' => DB::raw('updated_at'),
|
||||
]);
|
||||
|
||||
$user->own_flushes--;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user