summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2022-09-07 20:03:42 +0200
committerTom Smeding <tom@tomsmeding.com>2022-09-07 20:03:42 +0200
commit728673460b68541b74097e9e6c3ec588286e7d5c (patch)
tree87875aae1f88599ff1ec9958284e1506d25dcc4d
parentefb81ae3be0ec88193847f2865df124c1a2c6543 (diff)
timetrack3: Modern JS
-rw-r--r--modules/timetrack3/timetrack3.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/timetrack3/timetrack3.js b/modules/timetrack3/timetrack3.js
index 2aa1988..dbb0e5b 100644
--- a/modules/timetrack3/timetrack3.js
+++ b/modules/timetrack3/timetrack3.js
@@ -133,7 +133,7 @@ function dbCallback(res, fn) {
console.error(err);
res.status(500).send("Something went wrong...");
} else {
- fn(...Array.apply(Array, arguments).slice(1));
+ fn(...Array.from(arguments).slice(1));
}
};
}