Skip to content

Commit

Permalink
Fixed a timeout error for the locks
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienCastex committed Jun 16, 2017
1 parent b007f28 commit 6097857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/resource/lock/Lock.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Object.defineProperty(exports, "__esModule", { value: true });
var Lock = (function () {
function Lock(lockKind, user, owner) {
this.expirationDate = Date.now() + lockKind.timeout;
this.expirationDate = Date.now() + lockKind.timeout * 1000;
this.lockKind = lockKind;
this.owner = owner;
this.uuid = Lock.generateUUID(this.expirationDate);
Expand Down
2 changes: 1 addition & 1 deletion src/resource/lock/Lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class Lock

constructor(lockKind : LockKind, user : IUser | string, owner : LockOwner)
{
this.expirationDate = Date.now() + lockKind.timeout;
this.expirationDate = Date.now() + lockKind.timeout * 1000;
this.lockKind = lockKind;
this.owner = owner;
this.uuid = Lock.generateUUID(this.expirationDate);
Expand Down

0 comments on commit 6097857

Please sign in to comment.