fix: [AH-757]: do nothing if manifets manifest is already referenced (#3128)

* fix: [AH-757]: do nothing if manifets manifest is already referenced
pull/3597/head
Tudor Macari 2024-12-09 09:53:31 +00:00 committed by Harness
parent 8c5a5b6716
commit 9cd6480f9d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {