Fix Eq query (#5)

Fix Eq query

Signed-off-by: Etzelia <etzelia@hotmail.com>

Reviewed-on: https://git.etztech.xyz/Etzelia/go-mcm/pulls/5
pull/1/head
Etzelia 2020-10-17 06:21:18 +02:00
parent f652bbd2bd
commit d78d4ddf9f
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func (db *Builder) QueryString() string {
}
func (db *Builder) Eq(field Field, value interface{}) *Builder {
db.Params = append(db.Params, fmt.Sprintf("%__eq=%v", field, value))
db.Params = append(db.Params, fmt.Sprintf("%s__eq=%v", field, value))
return db
}