mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-01-24 06:16:43 +02:00
updated relation field validation message
This commit is contained in:
parent
94253f0dd5
commit
e6f1b3dfe4
@ -376,7 +376,7 @@ func (validator *RecordDataValidator) checkRelationValue(field *schema.SchemaFie
|
|||||||
AndWhere(dbx.In("id", list.ToInterfaceSlice(ids)...)).
|
AndWhere(dbx.In("id", list.ToInterfaceSlice(ids)...)).
|
||||||
Row(&total)
|
Row(&total)
|
||||||
if total != len(ids) {
|
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")
|
||||||
}
|
}
|
||||||
// ---
|
// ---
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user