Commit af82bd18 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

Merge branch 'MLAB-601' into 'testing'

show only (re)deployed websites

See merge request !82
parents a0089a56 faf563d4
Pipeline #5273 passed with stage
in 26 seconds
......@@ -2,6 +2,7 @@
import methods from '../functions/methods'
import gitlab from '../functions/gitlab'
import helpers from '../functions/helpers'
import https from 'https'
module.exports = function (app:any, lang:string) {
......@@ -142,7 +143,7 @@ module.exports = function (app:any, lang:string) {
// Projektinformationen
app.get('/projektinformationen', async function(req:any, res:any){
let pagesArr = []
let pagesArr: { logo: any; name: any; weburl: any; desc: any; keywords: any; createdAt: any; lastUpdatedAt: any; }[] = []
let isProject = true
let firstId = 0
let orderKeyword = req.query.sort
......@@ -183,7 +184,12 @@ module.exports = function (app:any, lang:string) {
createdAt: pagesData[i].created_at,
lastUpdatedAt: pagesData[i].last_activity_at
}
pagesArr.push(pages)
https.get(pagesData[i].web_url, function (response:any) {
if (response.statusCode >= 200 && response.statusCode <= 299) {
pagesArr.push(pages)
}
})
}
}
firstId = pagesData[pagesData.length-1].id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment