Fix record tests

Issue with returning invalid, empty errors
This commit is contained in:
Vivek Patel
2023-01-26 12:17:04 +01:00
committed by Jože Fortun
parent 1e94eb3baf
commit ef37121872
+2
View File
@@ -658,6 +658,8 @@ func (svc record) Bulk(ctx context.Context, oo ...*types.RecordBulkOperation) (r
// merge record value errors and strict duplication errors
if dd.HasStrictErrors() {
ee.Merge(rves, dd)
} else {
ee = rves
}
if !ee.IsValid() {