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.es5.js
CHANGED
|
@@ -4817,7 +4817,7 @@ var Session;
|
|
|
4817
4817
|
Session.Get = Get;
|
|
4818
4818
|
function Login(api, username, password, accountId) {
|
|
4819
4819
|
return __awaiter(this, void 0, void 0, function () {
|
|
4820
|
-
var data, ssid;
|
|
4820
|
+
var data, session, ssid;
|
|
4821
4821
|
return __generator(this, function (_a) {
|
|
4822
4822
|
switch (_a.label) {
|
|
4823
4823
|
case 0:
|
|
@@ -4831,10 +4831,11 @@ var Session;
|
|
|
4831
4831
|
})];
|
|
4832
4832
|
case 1:
|
|
4833
4833
|
data = _a.sent();
|
|
4834
|
-
|
|
4834
|
+
session = data === null || data === void 0 ? void 0 : data.Session;
|
|
4835
|
+
ssid = session === null || session === void 0 ? void 0 : session.ID;
|
|
4835
4836
|
api.SetSessionId(ssid);
|
|
4836
4837
|
api.Cache.Remove(GetCacheKey(ssid));
|
|
4837
|
-
return [2 /*return*/,
|
|
4838
|
+
return [2 /*return*/, session];
|
|
4838
4839
|
}
|
|
4839
4840
|
});
|
|
4840
4841
|
});
|