updated relation field validation message

This commit is contained in:
Gani Georgiev 2023-10-21 15:52:19 +03:00
parent 94253f0dd5
commit e6f1b3dfe4
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ func (validator *RecordDataValidator) checkRelationValue(field *schema.SchemaFie
AndWhere(dbx.In("id", list.ToInterfaceSlice(ids)...)).
Row(&total)
if total != len(ids) {
return validation.NewError("validation_missing_rel_records", "Failed to fetch all relation records with the provided ids")
return validation.NewError("validation_missing_rel_records", "Failed to find all relation records with the provided ids")
}
// ---