[#6639] fixed RecordErrorEvent.Error and CollectionErrorEvent.Error sync with ModelErrorEvent.Error

This commit is contained in:
Gani Georgiev
2025-03-25 19:56:03 +02:00
parent 865408a9b4
commit 778869c318
5 changed files with 569 additions and 3 deletions

View File

@@ -34,7 +34,11 @@ func onCollectionValidate(e *CollectionEvent) error {
original,
)
return validator.run()
if err := validator.run(); err != nil {
return err
}
return e.Next()
}
func newCollectionValidator(ctx context.Context, app App, new, original *Collection) *collectionValidator {