Update AvatarStorage, improve overview calculations

This commit is contained in:
Daniel Supernault 2022-12-02 02:01:59 -07:00
parent d52ee26dd7
commit 733b9fd000
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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'))
],
[
'------------',