Skip to content

Commit e4fca96

Browse files
some fixes
1 parent 084287c commit e4fca96

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules/module-postgres-storage/src/storage/PostgresReportStorageFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class PostgresReportStorageFactory implements storage.ReportStorage {
7171
connection_report_events
7272
WHERE
7373
disconnected_at IS NULL
74-
AND jwt_exp > NOW()
74+
AND jwt_exp > NOW() AT TIME ZONE 'UTC'
7575
AND connected_at >= ${{ type: 1184, value: gt }}
7676
AND connected_at <= ${{ type: 1184, value: lt }}
7777
),

packages/service-core/src/storage/ReportStorage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export interface ReportStorage extends AsyncDisposable {
2020
* Get currently connected clients.
2121
* This will return any short or long term connected clients.
2222
* Clients that have no disconnected_at timestamp and that have a valid jwt_exp timestamp are considered connected.
23+
* @param data.range.start Needs to be UTC time string
24+
* @param data.range.end Optional needs to be UTC time string
2325
*/
2426
getConnectedClients(data: event_types.ClientConnectionsRequest): Promise<event_types.ClientConnectionReportResponse>;
2527
/**

0 commit comments

Comments
 (0)