summaryrefslogtreecommitdiffstats
path: root/lib/Controller/FolderApiController.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2020-11-16 20:49:38 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2020-12-08 13:58:12 +0100
commit4ee3fcb78113caff9f2b890cb7d1702dc936d81e (patch)
treef8fc506f997acdb8e5315c62bb068b0b6db6cd56 /lib/Controller/FolderApiController.php
parent8abddeab4f541883721d912f97dec07bffdfc6b8 (diff)
Refactor User ID fetching and fix non-specific cleanup
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Controller/FolderApiController.php')
-rw-r--r--lib/Controller/FolderApiController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Controller/FolderApiController.php b/lib/Controller/FolderApiController.php
index c9a6b67b7..7f7f97525 100644
--- a/lib/Controller/FolderApiController.php
+++ b/lib/Controller/FolderApiController.php
@@ -72,7 +72,7 @@ class FolderApiController extends ApiController
public function create(string $name)
{
try {
- $this->folderService->purgeDeleted();
+ $this->folderService->purgeDeleted($this->getUserId(), time() - 600);
$folder = $this->folderService->create($this->getUserId(), $name);
return ['folders' => $this->serialize($folder)];
} catch (ServiceValidationException $ex) {