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
31672c79
Commit
31672c79
authored
Aug 10, 2025
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update src/tournament/tournament.service.ts
parent
a2c8e1ec
Pipeline
#40062
passed with stages
in 2 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/tournament/tournament.service.ts
src/tournament/tournament.service.ts
+3
-3
No files found.
src/tournament/tournament.service.ts
View file @
31672c79
...
@@ -40,7 +40,7 @@ class TournamentCache {
...
@@ -40,7 +40,7 @@ class TournamentCache {
@
CacheKey
()
@
CacheKey
()
cacheKey
()
{
cacheKey
()
{
return
`tournament_cache
2
:
${
this
.
id
}
:
${
this
.
noAnalytics
?
1
:
0
}
`
;
return
`tournament_cache
3
:
${
this
.
id
}
:
${
this
.
noAnalytics
?
1
:
0
}
`
;
}
}
}
}
...
@@ -107,7 +107,7 @@ export class TournamentService extends CrudService(Tournament, {
...
@@ -107,7 +107,7 @@ export class TournamentService extends CrudService(Tournament, {
cache
.
tournament
=
result
.
data
;
cache
.
tournament
=
result
.
data
;
return
cache
;
return
cache
;
};
};
const
key
=
`tournament_cache
2
:
${
id
}
:
${
noAnalytics
?
1
:
0
}
`
;
const
key
=
`tournament_cache
3
:
${
id
}
:
${
noAnalytics
?
1
:
0
}
`
;
const
res
=
await
(
noCache
?
fetchTournament
()
:
this
.
aragami
.
cache
(
TournamentCache
,
key
,
fetchTournament
));
const
res
=
await
(
noCache
?
fetchTournament
()
:
this
.
aragami
.
cache
(
TournamentCache
,
key
,
fetchTournament
));
const
tournament
=
res
.
tournament
;
const
tournament
=
res
.
tournament
;
tournament
.
wipeDeckBuf
(
user
);
tournament
.
wipeDeckBuf
(
user
);
...
@@ -555,6 +555,6 @@ export class TournamentService extends CrudService(Tournament, {
...
@@ -555,6 +555,6 @@ export class TournamentService extends CrudService(Tournament, {
async
clearTournamentCache
(
id
:
number
)
{
async
clearTournamentCache
(
id
:
number
)
{
if
(
!
id
)
return
;
if
(
!
id
)
return
;
this
.
log
.
log
(
`Clearing cache for tournament
${
id
}
`
);
this
.
log
.
log
(
`Clearing cache for tournament
${
id
}
`
);
await
this
.
aragami
.
clear
(
TournamentCache
,
`tournament_cache
2
:
${
id
}
:`
);
await
this
.
aragami
.
clear
(
TournamentCache
,
`tournament_cache
3
:
${
id
}
:`
);
}
}
}
}
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