Remove the notifications

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-03-23 13:14:51 +01:00
commit 5c4a7628f4
No known key found for this signature in database
GPG key ID: F941078878347C0C
6 changed files with 31 additions and 145 deletions

View file

@ -43,8 +43,6 @@ use OCA\Forms\Db\Event;
use OCA\Forms\Db\EventMapper;
use OCA\Forms\Db\Vote;
use OCA\Forms\Db\VoteMapper;
use OCA\Forms\Db\Notification;
use OCA\Forms\Db\NotificationMapper;
use OCA\Forms\Db\Question;
use OCA\Forms\Db\QuestionMapper;
@ -402,7 +400,6 @@ class ApiController extends Controller {
return new DataResponse(null, Http::STATUS_UNAUTHORIZED);
}
$this->voteMapper->deleteByForm($id);
// $this->notificationMapper->deleteByForm($id);
$this->questionMapper->deleteByForm($id);
$this->answerMapper->deleteByForm($id);
$this->eventMapper->delete($formToDelete);