Sergio Brighenti 5 years ago
parent
commit
0c949563ab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Controllers/UploadController.php

+ 1 - 1
app/Controllers/UploadController.php

@@ -133,7 +133,7 @@ class UploadController extends Controller
 
             return json($response, $json, 201);
         } catch (\Exception $e) {
-            $this->updateUserQuota($request, $user->id, $file->getSize(), false);
+            $this->updateUserQuota($request, $user->id, $file->getSize(), true);
             throw $e;
         }
     }