fix two grammar mistakes

This commit is contained in:
Dawid Wysokiński 2021-05-05 13:34:09 +02:00
parent 7ae8606da1
commit 79d8dc1929
1 changed files with 2 additions and 2 deletions

View File

@ -28,14 +28,14 @@ func appendFilters(q *orm.Query, filtersToAppend ...filterToAppend) (*orm.Query,
if f.relationName != "" && tableModel != nil {
alias, err := gopgutil.BuildAliasFromRelationName(tableModel, f.relationName)
if err != nil {
return q, errors.Wrapf(err, "Couldn't build alias from relation name '%s'", f.relationName)
return q, errors.Wrapf(err, "Couldn't build an alias from the relation name '%s'", f.relationName)
}
if join := tableModel.GetJoin(f.relationName); join == nil {
q = q.Relation(f.relationName + "._")
}
q, err = f.filter.WhereWithAlias(q, alias)
if err != nil {
return q, errors.Wrapf(err, "Couldn't append filter for the relation '%s'", f.relationName)
return q, errors.Wrapf(err, "Couldn't append the filter for the relation '%s'", f.relationName)
}
continue
}