Skip to content

Commit

Permalink
Update AvatarStorage, improve overview calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Dec 2, 2022
1 parent d52ee26 commit 733b9fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/Console/Commands/AvatarStorage.php
Expand Up @@ -51,8 +51,8 @@ public function handle()
],
[
'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)',
Expand All @@ -61,8 +61,8 @@ public function handle()
],
[
'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'))
],
[
'------------',
Expand Down

0 comments on commit 733b9fd

Please sign in to comment.