bruce-models 0.1.9 → 0.2.0
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.
package/dist/bruce-models.umd.js
CHANGED
|
@@ -4649,7 +4649,7 @@
|
|
|
4649
4649
|
Session.Get = Get;
|
|
4650
4650
|
function Login(api, username, password, accountId) {
|
|
4651
4651
|
return __awaiter(this, void 0, void 0, function () {
|
|
4652
|
-
var data, ssid;
|
|
4652
|
+
var data, session, ssid;
|
|
4653
4653
|
return __generator(this, function (_a) {
|
|
4654
4654
|
switch (_a.label) {
|
|
4655
4655
|
case 0:
|
|
@@ -4663,10 +4663,11 @@
|
|
|
4663
4663
|
})];
|
|
4664
4664
|
case 1:
|
|
4665
4665
|
data = _a.sent();
|
|
4666
|
-
|
|
4666
|
+
session = data === null || data === void 0 ? void 0 : data.Session;
|
|
4667
|
+
ssid = session === null || session === void 0 ? void 0 : session.ID;
|
|
4667
4668
|
api.SetSessionId(ssid);
|
|
4668
4669
|
api.Cache.Remove(GetCacheKey(ssid));
|
|
4669
|
-
return [2 /*return*/,
|
|
4670
|
+
return [2 /*return*/, session];
|
|
4670
4671
|
}
|
|
4671
4672
|
});
|
|
4672
4673
|
});
|