Skip to content

Commit 5d1af3c

Browse files
committed
fix(bots/discord/utils/duration): make second the default unit
1 parent 14c98e8 commit 5d1af3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bots/discord/src/utils/duration.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import parse from 'parse-duration'
22

3+
parse[''] = parse['s']
34
parse['mo'] = parse['M'] = parse['month']!
45

56
const defaultUnitValue = parse['']!

0 commit comments

Comments
 (0)