Skip to content

Commit

Permalink
Update registrator.dart (#511)
Browse files Browse the repository at this point in the history
Fixes #506
  • Loading branch information
VictorUvarov authored Dec 27, 2024
1 parent fe8848a commit 04a7652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/registrator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class Registrator {

expires ??= _expires;

expires = num.tryParse(expires) ?? 0;
expires = num.tryParse(expires.toString()) ?? 0;

if (expires < MIN_REGISTER_EXPIRES) {
expires = MIN_REGISTER_EXPIRES;
Expand Down

0 comments on commit 04a7652

Please sign in to comment.