Skip to content

Commit 8dc1f41

Browse files
committed
More code cleanup.
1 parent c70d31c commit 8dc1f41

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/Repositories/APIRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function create(array $data)
149149
$secretKey = str_random(16) . '.' . str_random(7) . '.' . str_random(7);
150150
$key = new Models\APIKey;
151151
$key->fill([
152-
'user' => $this->user->id,
152+
'user_id' => $this->user->id,
153153
'public' => str_random(16),
154154
'secret' => Crypt::encrypt($secretKey),
155155
'allowed_ips' => empty($this->allowed) ? null : json_encode($this->allowed),

app/Services/NotificationService.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class NotificationService
4848
public function __construct(Server $server)
4949
{
5050
$this->server = $server;
51-
$this->user = User::findOrFail($server->owner_id);
5251
}
5352

5453
public function pass(array $notification)

0 commit comments

Comments
 (0)