From 733b9fd00032e357a1c2739e9172dcaa676ad2c0 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 2 Dec 2022 02:01:59 -0700 Subject: [PATCH] Update AvatarStorage, improve overview calculations --- app/Console/Commands/AvatarStorage.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Console/Commands/AvatarStorage.php b/app/Console/Commands/AvatarStorage.php index b8a12446..4ebbc26d 100644 --- a/app/Console/Commands/AvatarStorage.php +++ b/app/Console/Commands/AvatarStorage.php @@ -51,8 +51,8 @@ class AvatarStorage extends Command ], [ 'Remote', - Avatar::whereNotNull('is_remote')->count(), - PrettyNumber::size(Avatar::whereNotNull('is_remote')->sum('size')) + Avatar::whereIsRemote(true)->count(), + PrettyNumber::size(Avatar::whereIsRemote(true)->sum('size')) ], [ 'Cached (CDN)', @@ -61,8 +61,8 @@ class AvatarStorage extends Command ], [ 'Uncached', - Avatar::whereNull('is_remote')->whereNull('cdn_url')->count(), - PrettyNumber::size(Avatar::whereNull('is_remote')->whereNull('cdn_url')->sum('size')) + Avatar::whereNull('cdn_url')->count(), + PrettyNumber::size(Avatar::whereNull('cdn_url')->sum('size')) ], [ '------------',