Fix variadic arguments
This commit is contained in:
parent
6a1b81b18b
commit
8c06f3ff4f
@ -117,7 +117,7 @@ func (h *Expecter) AssertExpectations() error {
|
|||||||
|
|
||||||
// First triggers a Query
|
// First triggers a Query
|
||||||
func (h *Expecter) First(out interface{}, where ...interface{}) ExpectedQuery {
|
func (h *Expecter) First(out interface{}, where ...interface{}) ExpectedQuery {
|
||||||
h.gorm.First(out)
|
h.gorm.First(out, where...)
|
||||||
return h.adapter.ExpectQuery(regexp.QuoteMeta(h.recorder.stmt))
|
return h.adapter.ExpectQuery(regexp.QuoteMeta(h.recorder.stmt))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user