1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-12-01 09:16:40 +02:00

added new lines for readability and consistency

This commit is contained in:
Gani Georgiev
2022-07-14 20:01:53 +03:00
parent a16b0c9004
commit dbbfa243bc
3 changed files with 4 additions and 0 deletions

View File

@@ -153,11 +153,13 @@ func (f FilterData) resolveToken(token fexpr.Token, fieldResolver FieldResolver)
}
return "", nil, err
}
return name, params, err
case fexpr.TokenNumber, fexpr.TokenText:
placeholder := "t" + security.RandomString(7)
name := fmt.Sprintf("{:%s}", placeholder)
params := dbx.Params{placeholder: token.Literal}
return name, params, nil
}