File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
3
3
var Lock = ( function ( ) {
4
4
function Lock ( lockKind , user , owner ) {
5
- this . expirationDate = Date . now ( ) + lockKind . timeout ;
5
+ this . expirationDate = Date . now ( ) + lockKind . timeout * 1000 ;
6
6
this . lockKind = lockKind ;
7
7
this . owner = owner ;
8
8
this . uuid = Lock . generateUUID ( this . expirationDate ) ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export class Lock
47
47
48
48
constructor ( lockKind : LockKind , user : IUser | string , owner : LockOwner )
49
49
{
50
- this . expirationDate = Date . now ( ) + lockKind . timeout ;
50
+ this . expirationDate = Date . now ( ) + lockKind . timeout * 1000 ;
51
51
this . lockKind = lockKind ;
52
52
this . owner = owner ;
53
53
this . uuid = Lock . generateUUID ( this . expirationDate ) ;
You can’t perform that action at this time.
0 commit comments