|
@@ -290,14 +290,14 @@ class ApiController implements LoggerAwareInterface
|
|
|
|
|
|
|
|
$rootUid = $this->siteController->deleteSiteAction($organizationId, $hard, true, true);
|
|
$rootUid = $this->siteController->deleteSiteAction($organizationId, $hard, true, true);
|
|
|
|
|
|
|
|
- $this->logger->info(sprintf(
|
|
|
|
|
- "OtAdmin API: The website with root uid " . $rootUid . " has been soft-deleted " .
|
|
|
|
|
- " (organization: " . $organizationId . ")"));
|
|
|
|
|
-
|
|
|
|
|
$msg = $hard ?
|
|
$msg = $hard ?
|
|
|
"The website with root uid " . $rootUid . " has been hard-deleted." :
|
|
"The website with root uid " . $rootUid . " has been hard-deleted." :
|
|
|
"The website with root uid " . $rootUid . " has been soft-deleted. Use the /site/undelete route to restore it.";
|
|
"The website with root uid " . $rootUid . " has been soft-deleted. Use the /site/undelete route to restore it.";
|
|
|
|
|
|
|
|
|
|
+ $this->logger->info(sprintf(
|
|
|
|
|
+ "OtAdmin API: " . $msg . " (organization: " . $organizationId . ")")
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
return new JsonResponse(
|
|
return new JsonResponse(
|
|
|
[
|
|
[
|
|
|
'organization_id' => $organizationId,
|
|
'organization_id' => $organizationId,
|