mirror of
https://github.com/harness/drone.git
synced 2025-05-10 22:21:22 +08:00
fix: [AH-757]: do nothing if manifets manifest is already referenced (#3128)
* fix: [AH-757]: do nothing if manifets manifest is already referenced
This commit is contained in:
parent
8c5a5b6716
commit
9cd6480f9d
@ -94,7 +94,7 @@ func (dao manifestReferenceDao) AssociateManifest(
|
|||||||
|
|
||||||
if err = db.QueryRowContext(ctx, query, arg...).Scan(&manifestRef.ID); err != nil {
|
if err = db.QueryRowContext(ctx, query, arg...).Scan(&manifestRef.ID); err != nil {
|
||||||
err = databaseg.ProcessSQLErrorf(ctx, err, "QueryRowContext failed")
|
err = databaseg.ProcessSQLErrorf(ctx, err, "QueryRowContext failed")
|
||||||
if errors.Is(err, store2.ErrDuplicate) {
|
if errors.Is(err, store2.ErrResourceNotFound) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if errors.Is(err, store2.ErrForeignKeyViolation) {
|
if errors.Is(err, store2.ErrForeignKeyViolation) {
|
||||||
|
Loading…
Reference in New Issue
Block a user