We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c70d31c commit 8dc1f41Copy full SHA for 8dc1f41
app/Repositories/APIRepository.php
@@ -149,7 +149,7 @@ public function create(array $data)
149
$secretKey = str_random(16) . '.' . str_random(7) . '.' . str_random(7);
150
$key = new Models\APIKey;
151
$key->fill([
152
- 'user' => $this->user->id,
+ 'user_id' => $this->user->id,
153
'public' => str_random(16),
154
'secret' => Crypt::encrypt($secretKey),
155
'allowed_ips' => empty($this->allowed) ? null : json_encode($this->allowed),
app/Services/NotificationService.php
@@ -48,7 +48,6 @@ class NotificationService
48
public function __construct(Server $server)
49
{
50
$this->server = $server;
51
- $this->user = User::findOrFail($server->owner_id);
52
}
53
54
public function pass(array $notification)
0 commit comments