fix reward query

This commit is contained in:
c9s 2021-03-18 00:46:10 +08:00
parent 90477826cf
commit 4a415a43b3

View File

@ -232,10 +232,12 @@ func (q *RewardBatchQuery) Query(ctx context.Context, startTime, endTime time.Ti
}
c <- o
startTime = o.CreatedAt.Time()
lastID = o.UUID
rewardKeys[o.UUID] = struct{}{}
}
end := len(rewards)-1
startTime = rewards[end].CreatedAt.Time()
lastID = rewards[end].UUID
}
}()