@mtgame/core 0.1.100 → 0.1.102
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,14 @@
|
|
|
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().set('file_type', format);
|
|
6215
|
+
if (isChess) {
|
|
6216
|
+
httpParams = httpParams.set('isChess', true);
|
|
6217
|
+
}
|
|
6213
6218
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/table_file/", {
|
|
6214
|
-
params:
|
|
6219
|
+
params: httpParams,
|
|
6215
6220
|
responseType: 'blob'
|
|
6216
6221
|
}).toPromise()];
|
|
6217
6222
|
});
|