Skip to content

Commit d18bca0

Browse files
authored
Add 'series_id' to Episode upsert unique constraints
1 parent dd0f74c commit d18bca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/Series.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public function fetchMetadata($refresh = false, $sync = true)
231231
// Upsert the episodes in bulk
232232
Episode::upsert(
233233
$bulk,
234-
uniqueBy: ['source_episode_id', 'playlist_id'],
234+
uniqueBy: ['source_episode_id', 'playlist_id', 'series_id'],
235235
update: [
236236
'title',
237237
'import_batch_no',

0 commit comments

Comments
 (0)