Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

Commit 2a22023

Browse files
authored
select empty nonce by OS so JSON will encode (#2389)
1 parent 2fff514 commit 2a22023

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/database/realm.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1996,7 +1996,8 @@ func (db *Database) AllRealmCodeStats(ctx context.Context, requiredRealms int, e
19961996
array[]::integer[] AS code_claim_age_distribution,
19971997
0 AS code_claim_mean_age,
19981998
array[0,0,0]::bigint[] AS codes_invalid_by_os,
1999-
0 AS user_reports_invalid_nonce
1999+
0 AS user_reports_invalid_nonce,
2000+
array[0,0,0]::bigint[] AS user_reports_invalid_nonce_by_os
20002001
FROM (
20012002
SELECT date::date FROM generate_series($1, $2, '1 day'::interval) date
20022003
) d

0 commit comments

Comments
 (0)