chore: use Database::Files.file_count to get the files hosted count
Some checks are pending
File-uploader-crystal CI / build (push) Waiting to run
Some checks are pending
File-uploader-crystal CI / build (push) Waiting to run
This commit is contained in:
parent
44d7afddfc
commit
7cc2ad9117
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ module Routing::Misc
|
|||
property alternative_domains : Array(String)
|
||||
|
||||
def initialize
|
||||
@files_hosted = SQL.query_one("SELECT COUNT (filename) FROM files", as: Int32)
|
||||
@files_hosted = Database::Files.file_count
|
||||
@max_upload_size = CONFIG.size_limit.to_s
|
||||
@thumbnail_generation = CONFIG.generate_thumbnails
|
||||
@filename_length = CONFIG.filename_length
|
||||
|
|
Loading…
Add table
Reference in a new issue