mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 04:46:18 +00:00
fix: use Auth(), add new db proxy stop event refactor clickhouse view
This commit is contained in:
1 parent
1ab459a09b
commit
7fb1a1fc75
22 files changed
+236
-123
No files matched your search
+2
-1
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
|
||||
Broadcast::channel('team.{teamId}', function (User $user, int $teamId) {
|
||||
@@ -23,7 +24,7 @@ Broadcast::channel('team.{teamId}', function (User $user, int $teamId) {
|
||||
});
|
||||
|
||||
Broadcast::channel('user.{userId}', function (User $user) {
|
||||
if ($user->id === auth()->user()->id) {
|
||||
if ($user->id === Auth::id()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user