Skip to content

Commit 44c529f

Browse files
committed
Fix MONTH ttl.
1 parent 87e858f commit 44c529f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,7 @@ func migrateDeviceMetricsFn(devEUI []byte) {
22482248
ttl := map[string]time.Duration{
22492249
"HOUR": time.Hour * 24 * 2,
22502250
"DAY": time.Hour * 24 * 31 * 2,
2251-
"MONTH": time.Hour * 24 * 31 * 365 * 2,
2251+
"MONTH": time.Hour * 24 * 31 * 12 * 2,
22522252
}
22532253

22542254
csPipe.HSet(context.Background(), newKey, vals)

0 commit comments

Comments
 (0)