mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-01 07:26:10 +02:00
Fix bug reported by user before I forget
This commit is contained in:
parent
2a93de9487
commit
5aaf568ed5
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ function trackDoorRunBegin(client, doorTag) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function trackDoorRunEnd(trackInfo) {
|
function trackDoorRunEnd(trackInfo) {
|
||||||
|
if (!trackInfo) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const { startTime, client, doorTag } = trackInfo;
|
const { startTime, client, doorTag } = trackInfo;
|
||||||
|
|
||||||
const diff = moment.duration(moment().diff(startTime));
|
const diff = moment.duration(moment().diff(startTime));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue