From 2b2b4f6830114606ea7c58c928bb34273043366e Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 17 Nov 2019 18:13:17 -0500 Subject: [PATCH] string should be a number --- src/api/routes/Account.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/Account.ts b/src/api/routes/Account.ts index a676310..198bebd 100644 --- a/src/api/routes/Account.ts +++ b/src/api/routes/Account.ts @@ -47,7 +47,7 @@ export default class Account extends Route { this.router.get('/storage', async (req: Req, res) => { try { - const data = await this.server.client.redis.get(`storage-${req.account.username}`) ? await this.server.client.redis.get(`storage-${req.account.username}`) : null; + const data = await this.server.client.redis.get(`storage-${req.account.username}`) ? Number(await this.server.client.redis.get(`storage-${req.account.username}`)) : null; res.status(200).json({ code: this.constants.codes.SUCCESS, message: data }); } catch (error) { this.handleError(error, res);