aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-08-14 18:01:24 +0200
committerRobin Appelman <robin@icewind.nl>2023-08-14 18:03:20 +0200
commitfb647e29b16b79a320d6099c541339f8fd54c86c (patch)
treece6f2e878cd7caf2975a08205392c682df2b0ea9 /apps/files_external
parent2ea6c5364dfd672576824b65c1120c17b8c25c0f (diff)
downloadnextcloud-server-fb647e29b16b79a320d6099c541339f8fd54c86c.tar.gz
nextcloud-server-fb647e29b16b79a320d6099c541339f8fd54c86c.zip
use fresh builders when deleting storages
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Service/DBConfigService.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_external/lib/Service/DBConfigService.php b/apps/files_external/lib/Service/DBConfigService.php
index bc089d18fbd..ca1d3a6696c 100644
--- a/apps/files_external/lib/Service/DBConfigService.php
+++ b/apps/files_external/lib/Service/DBConfigService.php
@@ -277,14 +277,17 @@ class DBConfigService {
->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
$query->execute();
+ $builder = $this->connection->getQueryBuilder();
$query = $builder->delete('external_applicable')
->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
$query->execute();
+ $builder = $this->connection->getQueryBuilder();
$query = $builder->delete('external_config')
->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
$query->execute();
+ $builder = $this->connection->getQueryBuilder();
$query = $builder->delete('external_options')
->where($builder->expr()->eq('mount_id', $builder->createNamedParameter($mountId, IQueryBuilder::PARAM_INT)));
$query->execute();