mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-03 05:35:42 +09:00
1 parent
ae877d56d3
commit
2801d00b3e
2 files changed
+1
-9
No files matched your search
@@ -253,7 +253,6 @@ const getMarket = (
|
||||
* @param {object} params - params of http request
|
||||
* @param {number} params.id - market id
|
||||
* @param {number} [params.page] - page number
|
||||
* @param {number} [params.name] - filter name
|
||||
* @param {object} userData - user data.
|
||||
* @param {string} userData.user - ONE username
|
||||
* @param {string} userData.password - ONE password
|
||||
@@ -266,7 +265,7 @@ const getDockerTags = (
|
||||
userData = {},
|
||||
oneConnection = defaultEmptyFunction
|
||||
) => {
|
||||
const { id, page, name } = params
|
||||
const { id, page } = params
|
||||
const { user, password } = userData
|
||||
if (id && user && password) {
|
||||
const connect = oneConnection(user, password)
|
||||
@@ -287,9 +286,6 @@ const getDockerTags = (
|
||||
if (page) {
|
||||
url += `&page=${page}`
|
||||
}
|
||||
if (name) {
|
||||
url += `&name=${name}`
|
||||
}
|
||||
getTagsDocker(
|
||||
url,
|
||||
(tags) => responseHttp(res, next, httpResponse(ok, tags)),
|
||||
|
||||
@@ -115,10 +115,6 @@ const routes = {
|
||||
from: fromData.query,
|
||||
name: 'page',
|
||||
},
|
||||
name: {
|
||||
from: fromData.query,
|
||||
name: 'name',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user