Fix Eq query (#5)
Fix Eq query Signed-off-by: Etzelia <etzelia@hotmail.com> Reviewed-on: https://git.etztech.xyz/Etzelia/go-mcm/pulls/5pull/1/head
parent
f652bbd2bd
commit
d78d4ddf9f
|
@ -25,7 +25,7 @@ func (db *Builder) QueryString() string {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *Builder) Eq(field Field, value interface{}) *Builder {
|
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
|
return db
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue