Skip to content

Commit

Permalink
fix DB constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Aug 26, 2024
1 parent a2bf630 commit caa18d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static function fromGithub(array $data): ?self
}

try {
$repository = self::query()->withBlocked()->firstOrCreate([
$repository = self::query()->withBlocked()->firstOrNew([
'id' => $data['id'],
], [
'name' => $data['full_name'],
Expand Down

0 comments on commit caa18d9

Please sign in to comment.