Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-ad-tips
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
nanahira
ygopro-ad-tips
Commits
7f7c31ca
Commit
7f7c31ca
authored
Oct 30, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
77ad10bc
Pipeline
#6552
passed with stages
in 13 minutes and 30 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
src/app.controller.ts
src/app.controller.ts
+1
-1
src/app.service.ts
src/app.service.ts
+1
-1
src/workspace/workspace.service.ts
src/workspace/workspace.service.ts
+2
-2
No files found.
src/app.controller.ts
View file @
7f7c31ca
...
...
@@ -23,6 +23,6 @@ export class AppController {
@
Param
(
'
workspaceName
'
)
workspaceName
:
string
,
@
Param
(
'
name
'
)
name
:
string
,
)
{
return
this
.
appService
.
getAdArray
(
'
workspaceName
'
,
name
);
return
this
.
appService
.
getAdArray
(
workspaceName
,
name
);
}
}
src/app.service.ts
View file @
7f7c31ca
...
...
@@ -46,7 +46,7 @@ export class AppService extends ConsoleLogger {
async
getAdArray
(
workspaceName
:
string
,
name
:
string
)
{
const
workspace
=
this
.
workspaceService
.
getWorkspace
(
workspaceName
);
if
(
!
workspace
)
{
throw
new
BlankReturnMessageDto
(
404
,
'
fil
e not found
'
).
toException
();
throw
new
BlankReturnMessageDto
(
404
,
'
workspac
e not found
'
).
toException
();
}
const
ads
=
await
this
.
getAd
(
workspace
,
name
);
return
_
.
flatten
(
...
...
src/workspace/workspace.service.ts
View file @
7f7c31ca
...
...
@@ -9,8 +9,8 @@ export class WorkspaceService extends ConsoleLogger {
constructor
(
private
config
:
ConfigService
)
{
super
(
'
workspace
'
);
const
entries
=
Object
.
entries
(
this
.
config
.
get
<
Workspace
>
(
'
workspaces
'
),
)
as
[
string
,
Workspace
][]
;
this
.
config
.
get
<
Record
<
string
,
Workspace
>
>
(
'
workspaces
'
),
);
this
.
workspaceMap
=
new
Map
(
entries
);
const
defaultEntry
=
entries
.
find
((
e
)
=>
e
[
1
].
default
);
if
(
defaultEntry
)
{
...
...
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