You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-08-08 22:36:41 +02:00
fix where, auth use request arg
This commit is contained in:
@ -114,8 +114,8 @@ func selectQuery() *sqlbuilder.SelectBuilder {
|
||||
// to the query.
|
||||
func findRequestQuery(req UserAccountFindRequest) (*sqlbuilder.SelectBuilder, []interface{}) {
|
||||
query := selectQuery()
|
||||
if req.Where != nil {
|
||||
query.Where(query.And(*req.Where))
|
||||
if req.Where != "" {
|
||||
query.Where(query.And(req.Where))
|
||||
}
|
||||
if len(req.Order) > 0 {
|
||||
query.OrderBy(req.Order...)
|
||||
|
Reference in New Issue
Block a user