refactor deleteNotification method

This commit is contained in:
isUnknown 2024-11-17 12:01:20 +01:00
parent 82f4aaf904
commit fe56312f20
6 changed files with 70 additions and 33 deletions

View file

@ -40,11 +40,14 @@ return [
'comments' => $comments
]);
echo json_encode(getFileData($newFile));
try {
$user->sendNotification($page->parent()->uri(), $newComment->toArray());
} catch (\Throwable $th) {
throw new Exception($th->getMessage(), 1);
}
return getFileData($newFile);
exit;
}
];