Skip to content

Commit 0578684

Browse files
committed
Rewrite portal usage record query
1 parent 0095778 commit 0578684

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/lib/usage/globaldb_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func (s *GlobalDBStore) FetchUsageRecordsInRange(
226226
).
227227
From(s.SQLBuilder.TableName("_portal_usage_record")).
228228
Where(
229-
"app_id = ? AND name = ? AND period = ? AND start_time >= ? AND end_time <= ?",
229+
"app_id = ? AND name = ? AND period = ? AND start_time >= ? AND start_time < ?",
230230
appID,
231231
string(recordName),
232232
string(period),

0 commit comments

Comments
 (0)