mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-05 12:49:58 +00:00
Fix duplicated episodes error
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user