notifications working
This commit is contained in:
parent
699c0bfa1d
commit
8ae00d7657
8 changed files with 28 additions and 202 deletions
|
|
@ -53,7 +53,9 @@ return [
|
|||
try {
|
||||
$user->sendNotification($page->parent(), $newComment->toArray());
|
||||
} catch (\Throwable $th) {
|
||||
return $th->getMessage() . " in " . $th->getFile() . " line " . $th->getLine();
|
||||
echo json_encode([
|
||||
"error" => $th->getMessage() . " in " . $th->getFile() . " line " . $th->getLine(),
|
||||
]);
|
||||
}
|
||||
|
||||
exit;
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ return [
|
|||
|
||||
echo json_encode(getFileData($newFile));
|
||||
|
||||
kirby()->user()->deleteNotification($project->managers()->toUsers(), $data->id);
|
||||
kirby()->user()->deleteNotification($project, $data->id);
|
||||
|
||||
exit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue