fix: show files per user (#299)

This commit is contained in:
Jayvin Hernandez 2023-02-23 21:33:12 -08:00 committed by GitHub
parent 34552926d1
commit 2d69cd580a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ async function handler(req: NextApiReq, res: NextApiRes, user: UserExtended) {
LIMIT ${amount}
`;
if (config.website.show_files_per_user) {
if (!config.website.show_files_per_user) {
stats = stats.map((stat) => {
(stat.data as any).count_by_user = [];
return stat;