Skip to content

Commit a852706

Browse files
authored
Loosen stats validation for CLI (#1699)
1 parent e086bba commit a852706

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cli/lib/appdata.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ const userDataSchema = z
3636
.passthrough()
3737
.optional(),
3838
lastBumpStats: z
39-
.record(
40-
z.union( [ z.nativeEnum( StatsGroup ), z.literal( 'local-environment-launch-uniques' ) ] ),
41-
z.record( z.nativeEnum( StatsMetric ), z.number() )
42-
)
39+
.record( z.string(), z.record( z.nativeEnum( StatsMetric ), z.number() ) )
4340
.optional(),
4441
} )
4542
.passthrough();

0 commit comments

Comments
 (0)