fix: history updates

Only update the history updated_at column on announces
This commit is contained in:
Roardom
2023-05-04 07:57:46 +00:00
parent 52ffba9a5f
commit 771994af31
7 changed files with 23 additions and 8 deletions
+5 -1
View File
@@ -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--;