From 0e5be926b3d9f5697f647c6ad5884435de1d25f8 Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Mon, 15 Jul 2019 11:50:20 +0530 Subject: [PATCH] :bug: Fix TS2339 --- package.json | 2 +- setup/internal/staart-version | 2 +- src/helpers/jwt.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3afc659d3..2dac862ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "staart-manager", - "version": "1.0.63", + "version": "1.0.64", "main": "index.js", "repository": "git@github.com:AnandChowdhary/staart.git", "author": "Anand Chowdhary ", diff --git a/setup/internal/staart-version b/setup/internal/staart-version index 96462aad5..ef3b2e2ce 100644 --- a/setup/internal/staart-version +++ b/setup/internal/staart-version @@ -1 +1 @@ -1.0.63 \ No newline at end of file +1.0.64 \ No newline at end of file diff --git a/src/helpers/jwt.ts b/src/helpers/jwt.ts index 07a3ab10c..a924e7d82 100644 --- a/src/helpers/jwt.ts +++ b/src/helpers/jwt.ts @@ -140,7 +140,7 @@ export const getLoginResponse = async ( { ...user, location: location - ? location.city || location.region_name || location.country + ? location.city || location.region_name || location.country_code : i18n.en.emails["unknown-location"], token: await approveLocationToken(user.id, locals.ipAddress) }