mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-02-13 17:19:12 -06:00
Merge pull request #29 from gnmyt/fixes/version-fix
# 🐛 Versionsfehler in der info route behoben
This commit is contained in:
@@ -7,7 +7,7 @@ const fs = require("fs");
|
||||
|
||||
app.get("/version", async (req, res) => {
|
||||
try {
|
||||
res.json({local: version, remote: (await axios.get(remote_url)).data.tag_name});
|
||||
res.json({local: version, remote: ((await axios.get(remote_url)).data.tag_name).replace("v", "")});
|
||||
} catch (e) {
|
||||
res.json({local: version, remote: "0"});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user