MCPcopy Index your code
hub / github.com/TruthHun/BookStack / FindSendCount

Method FindSendCount

models/member_token.go:58–67  ·  view source on GitHub ↗
(mail string, startTime time.Time, endTime time.Time)

Source from the content-addressed store, hash-verified

56}
57
58func (m *MemberToken) FindSendCount(mail string, startTime time.Time, endTime time.Time) (int, error) {
59 o := orm.NewOrm()
60
61 c, err := o.QueryTable(m.TableNameWithPrefix()).Filter("send_time__gte", startTime.Format("2006-01-02 15:04:05")).Filter("send_time__lte", endTime.Format("2006-01-02 15:04:05")).Count()
62
63 if err != nil {
64 return 0, err
65 }
66 return int(c), nil
67}

Callers 1

FindPasswordMethod · 0.80

Calls 2

TableNameWithPrefixMethod · 0.95
CountMethod · 0.45

Tested by

no test coverage detected