Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
tabulator-another
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
tabulator-another
Commits
def9654e
Commit
def9654e
authored
Jul 27, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update src/tournament/tournament.service.ts, src/srvpro/srvpro.service.ts files
parent
d9a5910d
Pipeline
#39602
failed with stages
in 1 minute and 2 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
src/srvpro/srvpro.service.ts
src/srvpro/srvpro.service.ts
+1
-0
src/tournament/tournament.service.ts
src/tournament/tournament.service.ts
+4
-2
No files found.
src/srvpro/srvpro.service.ts
View file @
def9654e
...
@@ -22,6 +22,7 @@ export class SrvproService {
...
@@ -22,6 +22,7 @@ export class SrvproService {
const
res
=
await
this
.
tournamentService
.
getTournament
(
const
res
=
await
this
.
tournamentService
.
getTournament
(
tournamentId
,
tournamentId
,
userId
,
userId
,
true
,
);
);
res
.
data
?.
checkPermission
(
userId
);
res
.
data
?.
checkPermission
(
userId
);
return
new
SRVProTournamentDto
(
res
.
data
);
return
new
SRVProTournamentDto
(
res
.
data
);
...
...
src/tournament/tournament.service.ts
View file @
def9654e
...
@@ -67,14 +67,16 @@ export class TournamentService extends CrudService(Tournament, {
...
@@ -67,14 +67,16 @@ export class TournamentService extends CrudService(Tournament, {
private
cmptApiToken
=
this
.
config
.
get
<
string
>
(
'
CMPT_API_TOKEN
'
,
''
);
private
cmptApiToken
=
this
.
config
.
get
<
string
>
(
'
CMPT_API_TOKEN
'
,
''
);
async
getTournament
(
id
:
number
,
user
:
MycardUser
|
number
)
{
async
getTournament
(
id
:
number
,
user
:
MycardUser
|
number
,
noAnalytics
=
false
)
{
const
result
=
await
this
.
findOne
(
id
,
(
qb
)
=>
const
result
=
await
this
.
findOne
(
id
,
(
qb
)
=>
Tournament
.
extraQueryForUser
(
user
,
qb
,
this
.
entityAliasName
),
Tournament
.
extraQueryForUser
(
user
,
qb
,
this
.
entityAliasName
),
);
);
result
.
data
?.
participants
?.
forEach
((
p
)
=>
result
.
data
?.
participants
?.
forEach
((
p
)
=>
this
.
participantService
.
wipeDeckbuf
(
user
,
p
,
result
.
data
),
this
.
participantService
.
wipeDeckbuf
(
user
,
p
,
result
.
data
),
);
);
result
.
data
?.
analytics
();
if
(
this
.
status
===
TournamentStatus
.
Ready
&&
!
noAnalytics
)
{
result
.
data
?.
analytics
();
}
return
result
;
return
result
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment