From 206fef682fb0e0f42e5f99b9d51eeb9737daea6b Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 12 Oct 2019 20:14:33 -0400 Subject: [PATCH] [-] Revert "[U] Update http-utils to use token.token" This reverts commit 543b0ddefe5e12c34d8f0363dd9b93cfc9a89914. --- src/utils/http-utils.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/utils/http-utils.ts b/src/utils/http-utils.ts index 5b9f0cb..c4bc537 100644 --- a/src/utils/http-utils.ts +++ b/src/utils/http-utils.ts @@ -1,11 +1,10 @@ import Constants from '@/constants'; -import {Token} from '@/components/app/app'; export class HttpUtils { - public token: Token; + public token: string = ''; - constructor (token: Token) + constructor (token: string) { this.token = token; } @@ -13,10 +12,7 @@ export class HttpUtils public post(node: string, body: any): Promise { // Add token - if (this.token != null) - { - body['token'] = this.token.token; - } + if (this.token != '') body['token'] = this.token; // Create promise return new Promise((resolve, reject) =>