@mtgame/core 0.1.38 → 0.1.39

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.
@@ -5298,10 +5298,15 @@ var TournamentApi = /** @class */ (function () {
5298
5298
  });
5299
5299
  });
5300
5300
  };
5301
- TournamentApi.prototype.getTeams = function (tournamentId) {
5301
+ TournamentApi.prototype.getTeams = function (tournamentId, groupId) {
5302
5302
  return __awaiter(this, void 0, void 0, function () {
5303
+ var params;
5303
5304
  return __generator(this, function (_a) {
5304
- return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/teams/")
5305
+ params = new HttpParams();
5306
+ if (groupId) {
5307
+ params = params.set('group_id', groupId.toString());
5308
+ }
5309
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/teams/", { params: params })
5305
5310
  .pipe(map(function (result) { return TournamentTeam.toFront(result); }))
5306
5311
  .toPromise()];
5307
5312
  });