feat(billing): Fix end time comparision for all view
This commit is contained in:
4 files changed
+18
-9
No files matched your search
@@ -102,6 +102,11 @@ func Test_MonthlyActiveUsers(t *testing.T) {
|
||||
req: &pbs.MonthlyActiveUsersRequest{StartTime: threeMonthsAgo, EndTime: oneMonthAgo},
|
||||
res: &pbs.MonthlyActiveUsersResponse{
|
||||
Items: []*pb.ActiveUsers{
|
||||
{
|
||||
Count: 6,
|
||||
StartTime: timestamppb.New(time.Date(today.Year(), today.Month()-2, 1, 0, 0, 0, 0, time.UTC)),
|
||||
EndTime: timestamppb.New(time.Date(today.Year(), today.Month()-1, 1, 0, 0, 0, 0, time.UTC)),
|
||||
},
|
||||
{
|
||||
Count: 6,
|
||||
StartTime: timestamppb.New(time.Date(today.Year(), today.Month()-3, 1, 0, 0, 0, 0, time.UTC)),
|
||||
|
||||
Reference in new issue
Block a user