/api/info values should be numbers. fixes #748

This commit is contained in:
Danny Coates 2018-02-02 10:10:51 -08:00
parent a4e13f032a
commit be498e0bd3
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ module.exports = async function(req, res) {
} }
const ttl = await storage.ttl(id); const ttl = await storage.ttl(id);
return res.send({ return res.send({
dlimit: meta.dlimit, dlimit: +meta.dlimit,
dtotal: meta.dl, dtotal: +meta.dl,
ttl ttl
}); });
} catch (e) { } catch (e) {