amalia/05-mei-26 #18
10
src/app.ts
10
src/app.ts
@@ -363,11 +363,8 @@ export function createApp() {
|
|||||||
return apps.map((app) => ({
|
return apps.map((app) => ({
|
||||||
id: app.id,
|
id: app.id,
|
||||||
name: app.name,
|
name: app.name,
|
||||||
status: app.maintenance ? 'warning' : app.bugs.length > 0 ? 'error' : 'active',
|
status: app.active ? 'active' : 'inactive',
|
||||||
errors: app.bugs.length,
|
errors: app.bugs.length,
|
||||||
version: app.version ?? '-',
|
|
||||||
minVersion: app.minVersion,
|
|
||||||
maintenance: app.maintenance,
|
|
||||||
active: app.active,
|
active: app.active,
|
||||||
urlApi: app.urlApi,
|
urlApi: app.urlApi,
|
||||||
hasClientApiKey: !!app.clientApiKey,
|
hasClientApiKey: !!app.clientApiKey,
|
||||||
@@ -400,11 +397,8 @@ export function createApp() {
|
|||||||
return {
|
return {
|
||||||
id: app.id,
|
id: app.id,
|
||||||
name: app.name,
|
name: app.name,
|
||||||
status: app.maintenance ? 'warning' : app.bugs.length > 0 ? 'error' : 'active',
|
status: app.active ? 'active' : 'inactive',
|
||||||
errors: app.bugs.length,
|
errors: app.bugs.length,
|
||||||
version: app.version ?? '-',
|
|
||||||
minVersion: app.minVersion,
|
|
||||||
maintenance: app.maintenance,
|
|
||||||
urlApi: app.urlApi,
|
urlApi: app.urlApi,
|
||||||
totalBugs: app._count.bugs,
|
totalBugs: app._count.bugs,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user