demo functions refactoring

This commit is contained in:
Čarodej
2022-03-05 18:09:53 +01:00
parent 81f227c5e7
commit 1e4649eec2
15 changed files with 58 additions and 28 deletions
@@ -17,7 +17,9 @@ class SetUploadRequestAsFilledController
]);
// Send user notification
$uploadRequest->user->notify(new UploadRequestFulfilledNotification($uploadRequest));
if (!is_demo_account()) {
$uploadRequest->user->notify(new UploadRequestFulfilledNotification($uploadRequest));
}
return response(new UploadRequestResource($uploadRequest), 201);
}