fix saving diff collection

This commit is contained in:
Pavel Merzlyakov 2023-12-26 19:36:58 +03:00
parent 7d810fc71c
commit e40e3fe776
1 changed files with 3 additions and 1 deletions

View File

@ -305,7 +305,9 @@ func Save{{ ctx.s.name }}CollectionDiff(ctx context.Context, dbe metadb.Execer,
queryBuilder.WriteString(builder.update.String())
_, saveErr := dbe.ExecContext(ctx, queryBuilder.String(), builder.rawValues...)
return errors.Wrap(saveErr, queryBuilder.String())
if saveErr != nil {
return errors.Wrap(saveErr, queryBuilder.String())
}
}
return nil