diff --git a/api/v1/submissions/PKPSubmissionController.php b/api/v1/submissions/PKPSubmissionController.php index 0cf5b342128..df463f42c1c 100644 --- a/api/v1/submissions/PKPSubmissionController.php +++ b/api/v1/submissions/PKPSubmissionController.php @@ -856,6 +856,15 @@ public function submit(Request $illuminateRequest): JsonResponse $genreDao = DAORegistry::getDAO('GenreDAO'); $genres = $genreDao->getByContextId($submission->getData('contextId'))->toArray(); + $notificationManager = new NotificationManager(); + $notificationManager->updateNotification( + Application::get()->getRequest(), + [Notification::NOTIFICATION_TYPE_APPROVE_SUBMISSION], + null, + PKPApplication::ASSOC_TYPE_SUBMISSION, + $submission->getId() + ); + return response()->json(Repo::submission()->getSchemaMap()->map($submission, $userGroups, $genres), Response::HTTP_OK); }