Plugin: Zoom: Delete webinar even if API doesn't respond - refs BT#20827

pull/4786/head
Angel Fernando Quiroz Campos 2 years ago
parent 435a93b9de
commit 3f5bc960c9
  1. 9
      plugin/zoom/lib/ZoomPlugin.php

@ -515,11 +515,13 @@ class ZoomPlugin extends Plugin
public function deleteWebinar(Webinar $webinar, string $returnURL) public function deleteWebinar(Webinar $webinar, string $returnURL)
{ {
$em = Database::getManager();
try { try {
$webinar->getWebinarSchema()->delete(); $webinar->getWebinarSchema()->delete();
} catch (Exception $exception) {
$this->handleException($exception);
}
$em = Database::getManager();
$em->remove($webinar); $em->remove($webinar);
$em->flush(); $em->flush();
@ -528,9 +530,6 @@ class ZoomPlugin extends Plugin
); );
api_location($returnURL); api_location($returnURL);
} catch (Exception $exception) {
$this->handleException($exception);
}
} }
/** /**

Loading…
Cancel
Save