mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fix duplicated episodes error
This commit is contained in:
parent
3e31c51f65
commit
8a925b35dd
@ -132,7 +132,7 @@ namespace Kyoo.Postgresql
|
||||
/// <inheritdoc />
|
||||
protected override bool IsDuplicateException(Exception ex)
|
||||
{
|
||||
return ex.InnerException is PostgresException { SqlState: PostgresErrorCodes.UniqueViolation };
|
||||
return ex.InnerException is PostgresException { SqlState: PostgresErrorCodes.UniqueViolation or PostgresErrorCodes.ForeignKeyViolation };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user