@mtgame/core 0.1.100 → 0.1.101
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.
|
@@ -6209,9 +6209,15 @@
|
|
|
6209
6209
|
};
|
|
6210
6210
|
TournamentApi.prototype.downloadTable = function (tournamentId, format, isChess) {
|
|
6211
6211
|
return __awaiter(this, void 0, void 0, function () {
|
|
6212
|
+
var httpParams;
|
|
6212
6213
|
return __generator(this, function (_a) {
|
|
6214
|
+
httpParams = new i1.HttpParams();
|
|
6215
|
+
httpParams.set('file_type', format);
|
|
6216
|
+
if (isChess) {
|
|
6217
|
+
httpParams.set('isChess', isChess);
|
|
6218
|
+
}
|
|
6213
6219
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/table_file/", {
|
|
6214
|
-
params:
|
|
6220
|
+
params: httpParams,
|
|
6215
6221
|
responseType: 'blob'
|
|
6216
6222
|
}).toPromise()];
|
|
6217
6223
|
});
|