diff --git a/database/gdb/gdb_model_condition.go b/database/gdb/gdb_model_condition.go index 3ece170d8..b71288647 100644 --- a/database/gdb/gdb_model_condition.go +++ b/database/gdb/gdb_model_condition.go @@ -235,7 +235,7 @@ func (m *Model) OrderDesc(column string) *Model { } // OrderRandom sets the "ORDER BY RANDOM()" statement for the model. -func (m *Model) OrderRandom(orderBy ...string) *Model { +func (m *Model) OrderRandom() *Model { model := m.getModel() model.orderBy = "RAND()" return model