Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dealer Counter
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
Dealer Counter
Commits
67ee7b63
Commit
67ee7b63
authored
Jan 02, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
multiple dealers
parent
c07f9e93
Pipeline
#24770
passed with stages
in 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/app.service.ts
src/app.service.ts
+4
-3
No files found.
src/app.service.ts
View file @
67ee7b63
...
@@ -2,13 +2,14 @@ import { Injectable, ConsoleLogger } from '@nestjs/common';
...
@@ -2,13 +2,14 @@ import { Injectable, ConsoleLogger } from '@nestjs/common';
import
{
ConfigService
}
from
'
@nestjs/config
'
;
import
{
ConfigService
}
from
'
@nestjs/config
'
;
import
{
InjectRepository
}
from
'
@nestjs/typeorm
'
;
import
{
InjectRepository
}
from
'
@nestjs/typeorm
'
;
import
{
DuelLogPlayer
}
from
'
./entities/DuelLogPlayer
'
;
import
{
DuelLogPlayer
}
from
'
./entities/DuelLogPlayer
'
;
import
{
FindOptionsWhere
,
Not
,
Repository
}
from
'
typeorm
'
;
import
{
FindOptionsWhere
,
In
,
Not
,
Repository
}
from
'
typeorm
'
;
import
{
MatchResultDto
}
from
'
./dto/match-result.dto
'
;
import
{
MatchResultDto
}
from
'
./dto/match-result.dto
'
;
import
{
GenericReturnMessageDto
}
from
'
nicot
'
;
import
{
GenericReturnMessageDto
}
from
'
nicot
'
;
@
Injectable
()
@
Injectable
()
export
class
AppService
extends
ConsoleLogger
{
export
class
AppService
extends
ConsoleLogger
{
private
dealerUsername
=
this
.
config
.
get
<
string
>
(
'
DEALER_USERNAME
'
);
private
dealerUsername
=
this
.
config
.
get
<
string
>
(
'
DEALER_USERNAME
'
)?.
split
(
'
,
'
)
||
[];
constructor
(
constructor
(
private
readonly
config
:
ConfigService
,
private
readonly
config
:
ConfigService
,
@
InjectRepository
(
DuelLogPlayer
)
@
InjectRepository
(
DuelLogPlayer
)
...
@@ -38,7 +39,7 @@ export class AppService extends ConsoleLogger {
...
@@ -38,7 +39,7 @@ export class AppService extends ConsoleLogger {
async
getDealerMatchResult
()
{
async
getDealerMatchResult
()
{
return
await
this
.
getMatchResult
({
return
await
this
.
getMatchResult
({
realName
:
this
.
dealerUsername
,
realName
:
In
(
this
.
dealerUsername
)
,
});
});
}
}
...
...
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