Skip to content

Commit

Permalink
fix: correctly revert #11236
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 1, 2022
1 parent f67e1ca commit ae4faa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ exports.expires = function expires(object) {

object.expireAfterSeconds = (typeof object.expires !== 'string')
? object.expires
: Math.round(ms.parse(object.expires) / 1000);
: Math.round(ms(object.expires) / 1000);
delete object.expires;
};

Expand Down

0 comments on commit ae4faa1

Please sign in to comment.