[U] Update user type and usage in Http-utils.js

This commit is contained in:
Hykilpikonna
2019-12-02 14:21:41 -05:00
parent c01817cd97
commit e10ed6e41b
+3 -2
View File
@@ -1,13 +1,14 @@
import Constants from '@/constants';
import LoginUser from '@/logic/login-user';
export class HttpUtils
{
public token: string = '';
public user: LoginUser;
public post(node: string, body: any): Promise<any>
{
// Add token
if (this.token != '') body['token'] = this.token;
if (this.user != null) body['token'] = this.user.token;
// Create promise
return new Promise<any>((resolve, reject) =>