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