File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
modules/module-postgres-storage/src Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ export class PostgresReportStorageFactory implements storage.ReportStorageFactor
132132 sdk_versions_array AS (
133133 SELECT
134134 sdk,
135- COUNT(*) AS total,
136135 COUNT(DISTINCT client_id) AS clients,
137136 COUNT(DISTINCT user_id) AS users
138137 FROM
@@ -183,7 +182,6 @@ export class PostgresReportStorageFactory implements storage.ReportStorageFactor
183182 sdk_versions_array AS (
184183 SELECT
185184 sdk,
186- COUNT(*) AS total,
187185 COUNT(DISTINCT client_id) AS clients,
188186 COUNT(DISTINCT user_id) AS users
189187 FROM
Original file line number Diff line number Diff line change 11import * as t from 'ts-codec' ;
22import { bigint , jsonb } from '../codecs.js' ;
33
4+ export const Sdks = t . object ( {
5+ sdk : t . string ,
6+ clients : t . number ,
7+ users : t . number
8+ } ) ;
9+
410export const SdkReporting = t . object ( {
511 users : bigint ,
612 sdks : t . object ( {
7- data : jsonb ( t . record ( t . string ) )
13+ data : jsonb ( t . array ( Sdks ) )
814 } )
915} ) ;
1016
You can’t perform that action at this time.
0 commit comments