curtain-web-api 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -156,6 +156,7 @@ class CurtainWebAPI {
|
|
|
156
156
|
this.user.totalCurtain = response.data.total_curtain;
|
|
157
157
|
this.user.curtainLinkLimitExceeded = response.data.curtain_link_limit_exceeded;
|
|
158
158
|
return this.user.updateDB().then((response) => {
|
|
159
|
+
console.log(this.user);
|
|
159
160
|
return this.user;
|
|
160
161
|
});
|
|
161
162
|
});
|
|
@@ -187,8 +188,7 @@ class CurtainWebAPI {
|
|
|
187
188
|
this.user.access_token = response.data.access;
|
|
188
189
|
this.user.refresh_token = response.data.refresh;
|
|
189
190
|
this.user.loginStatus = true;
|
|
190
|
-
|
|
191
|
-
}).then((response) => {
|
|
191
|
+
this.user.saveIntoDB().then();
|
|
192
192
|
return this.getUserInfo();
|
|
193
193
|
});
|
|
194
194
|
}
|
package/package.json
CHANGED
|
@@ -136,6 +136,7 @@ export class CurtainWebAPI {
|
|
|
136
136
|
this.user.totalCurtain = response.data.total_curtain;
|
|
137
137
|
this.user.curtainLinkLimitExceeded = response.data.curtain_link_limit_exceeded;
|
|
138
138
|
return this.user.updateDB().then((response) => {
|
|
139
|
+
console.log(this.user)
|
|
139
140
|
return this.user;
|
|
140
141
|
});
|
|
141
142
|
|
|
@@ -171,10 +172,9 @@ export class CurtainWebAPI {
|
|
|
171
172
|
this.user.access_token = response.data.access;
|
|
172
173
|
this.user.refresh_token = response.data.refresh;
|
|
173
174
|
this.user.loginStatus = true;
|
|
174
|
-
|
|
175
|
-
}).then((response) => {
|
|
175
|
+
this.user.saveIntoDB().then();
|
|
176
176
|
return this.getUserInfo();
|
|
177
|
-
})
|
|
177
|
+
})
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
checkIfRefreshTokenExpired() {
|