Skip to content

Commit 6097857

Browse files
committed
Fixed a timeout error for the locks
1 parent b007f28 commit 6097857

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/resource/lock/Lock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Object.defineProperty(exports, "__esModule", { value: true });
33
var Lock = (function () {
44
function Lock(lockKind, user, owner) {
5-
this.expirationDate = Date.now() + lockKind.timeout;
5+
this.expirationDate = Date.now() + lockKind.timeout * 1000;
66
this.lockKind = lockKind;
77
this.owner = owner;
88
this.uuid = Lock.generateUUID(this.expirationDate);

src/resource/lock/Lock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class Lock
4747

4848
constructor(lockKind : LockKind, user : IUser | string, owner : LockOwner)
4949
{
50-
this.expirationDate = Date.now() + lockKind.timeout;
50+
this.expirationDate = Date.now() + lockKind.timeout * 1000;
5151
this.lockKind = lockKind;
5252
this.owner = owner;
5353
this.uuid = Lock.generateUUID(this.expirationDate);

0 commit comments

Comments
 (0)