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
7eb92860
Commit
7eb92860
authored
Jul 27, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update src/tournament/tournament.service.ts, src/tournament/tournament.controller.ts files
parent
e8625f21
Pipeline
#39605
passed with stages
in 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
src/tournament/tournament.controller.ts
src/tournament/tournament.controller.ts
+3
-3
src/tournament/tournament.service.ts
src/tournament/tournament.service.ts
+10
-8
No files found.
src/tournament/tournament.controller.ts
View file @
7eb92860
...
...
@@ -36,9 +36,9 @@ const factory = new RestfulFactory(Tournament, {
relations
:
[
'
participants
'
,
'
matches
'
,
'
matches.player1
'
,
'
matches.player2
'
,
'
matches.winner
'
,
//
'matches.player1',
//
'matches.player2',
//
'matches.winner',
/*
'matchTree',
'matchTree.player1',
...
...
src/tournament/tournament.service.ts
View file @
7eb92860
...
...
@@ -34,9 +34,9 @@ export class TournamentService extends CrudService(Tournament, {
relations
:
[
'
participants
'
,
'
matches
'
,
'
matches.player1
'
,
'
matches.player2
'
,
'
matches.winner
'
,
//
'matches.player1',
//
'matches.player2',
//
'matches.winner',
],
extraGetQuery
:
(
qb
)
=>
{
/*qb
...
...
@@ -71,11 +71,13 @@ export class TournamentService extends CrudService(Tournament, {
const
result
=
await
this
.
findOne
(
id
,
(
qb
)
=>
Tournament
.
extraQueryForUser
(
user
,
qb
,
this
.
entityAliasName
),
);
result
.
data
?.
participants
?.
forEach
((
p
)
=>
this
.
participantService
.
wipeDeckbuf
(
user
,
p
,
result
.
data
),
);
if
(
result
.
data
?.
status
===
TournamentStatus
.
Ready
&&
!
noAnalytics
)
{
result
.
data
?.
analytics
();
if
(
result
.
data
)
{
result
.
data
.
participants
?.
forEach
((
p
)
=>
this
.
participantService
.
wipeDeckbuf
(
user
,
p
,
result
.
data
),
);
if
(
result
.
data
.
status
===
TournamentStatus
.
Ready
&&
!
noAnalytics
)
{
result
.
data
.
analytics
();
}
}
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