We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
user
1 parent 0966349 commit 66bf74dCopy full SHA for 66bf74d
models/user_mail.go
@@ -316,7 +316,7 @@ type SearchEmailResult struct {
316
// SearchEmails takes options i.e. keyword and part of email name to search,
317
// it returns results in given range and number of total results.
318
func SearchEmails(opts *SearchEmailOptions) ([]*SearchEmailResult, int64, error) {
319
- var cond builder.Cond = builder.Eq{"user.`type`": UserTypeIndividual}
+ var cond builder.Cond = builder.Eq{"`user`.`type`": UserTypeIndividual}
320
if len(opts.Keyword) > 0 {
321
likeStr := "%" + strings.ToLower(opts.Keyword) + "%"
322
cond = cond.And(builder.Or(
0 commit comments