test deleteMissing with schema changes

This commit is contained in:
Gani Georgiev committed 2022-08-10 13:22:27 +03:00
1 parent ac0c23ff64
commit 65b830198b
15 files changed
+488 -136

No files matched your search

+2 -2
View File
@@ -139,11 +139,11 @@ func (form *CollectionsImport) beforeRecordsSync(txDao *daos.Dao, mappedNew, map
if err := upsertForm.Validate(); err != nil {
// serialize the validation error(s)
serializedErr, _ := json.Marshal(err)
serializedErr, _ := json.MarshalIndent(err, "", " ")
return validation.Errors{"collections": validation.NewError(
"collections_import_validate_failure",
fmt.Sprintf("Data validations failed for collection %q (%s): %s", collection.Name, collection.Id, serializedErr),
fmt.Sprintf("Data validations failed for collection %q (%s):\n%s", collection.Name, collection.Id, serializedErr),
)}
}
}