Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-api
Commits
f59a70ff
Commit
f59a70ff
authored
May 28, 2020
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2027d8c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
dbconfig.js
app/controller/dbconfig.js
+1
-2
user.js
app/controller/user.js
+1
-1
repoServiceNew.js
app/service/repoServiceNew.js
+1
-0
No files found.
app/controller/dbconfig.js
View file @
f59a70ff
...
...
@@ -5,8 +5,7 @@ const { DBConfig } = require('../service/mongoService');
const
config
=
require
(
'
../../src/
'
);
const
{
defaultUsername
}
=
config
.
syncDB
;
const
{
defaultPasswd
}
=
config
.
syncDB
;
const
{
defaultUsername
,
defaultPasswd
}
=
config
.
syncDB
;
const
getDBConfig
=
async
(
ctx
)
=>
{
const
item
=
await
DBConfig
.
getDBConfig
({},
{},
{
dbname
:
1
});
...
...
app/controller/user.js
View file @
f59a70ff
...
...
@@ -12,7 +12,7 @@ const authenticate = require('../service/authenticate')
const
router
=
new
Router
()
const
admin
=
[
'
zhijie.xue
'
,
'
luoyong.meng
'
,
'
kewei.jia
'
,
'
hui.h
u
'
,
'
yong.zhi
'
,
'
haiyuan.wen
'
]
const
admin
=
[
'
zhijie.xue
'
,
'
luoyong.meng
'
,
'
jinfang.li
u
'
,
'
yong.zhi
'
,
'
haiyuan.wen
'
]
const
login
=
async
function
(
ctx
)
{
const
{
body
}
=
ctx
.
request
...
...
app/service/repoServiceNew.js
View file @
f59a70ff
...
...
@@ -53,6 +53,7 @@ async function getRepoOfNs(ctx, ns) {
// 把tag信息拉平到appname上
const
m
=
[]
console
.
log
(
1
,
repos
)
repos
.
forEach
((
item
)
=>
{
const
tags
=
item
.
tags
||
[
LASTEST
]
tags
.
forEach
((
tag
)
=>
{
...
...
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