feat(billing): Fix end time comparision for all view

This commit is contained in:
Timothy Messier committed 2024-02-23 15:44:10 +00:00
1 parent e6c3795f91
commit 111dc87ead
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)),