fix: include timestamp critical value

This commit is contained in:
vilet.yy 2021-06-02 15:05:24 +08:00
parent b8fd0c3f98
commit ff366f6c6a
1 changed files with 2 additions and 2 deletions

View File

@ -82,8 +82,8 @@ func GetUserHeatMapDataByUserWithTimeStamp(user *User, opts TimestampOptions) ([
sess := x.Select(groupBy+" AS timestamp, count(user_id) as contributions").
Table("action").
Where("user_id = ?", user.ID).
And("created_unix > ?", opts.Start).
And("created_unix < ?", opts.End)
And(groupBy+" >= ?", opts.Start).
And(groupBy+" <= ?", opts.End)
if user.Type == UserTypeIndividual {
sess = sess.And("act_user_id = ?", user.ID)