From ed0da89c7d98195294ced6d71812183a04e24c76 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 15 Jun 2020 13:37:38 -0700 Subject: move client version, update example config and schema --- routes/info.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'routes') diff --git a/routes/info.js b/routes/info.js index 81cb2095..382c37c0 100644 --- a/routes/info.js +++ b/routes/info.js @@ -1,15 +1,8 @@ const sequelize = require("sequelize"); const { Op } = sequelize; -const fs = require("fs"); -try { - clientVersion = fs.readFileSync('config/clientversion').toString(); - l.info("client version", clientVersion); -} catch(e) { - l.warn("no client version found"); -} - app.get("/info", async (req, res) => { + const { clientVersion } = config; const accounts = await db.Account.findAll({ attributes: [ "asset", -- cgit v1.2.3