Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ghostfolio/commit/6db881b08f49aa323b5940c1dde082b7aef974c6
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
36 additions and
27 deletions
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Optimized the asynchronous operations using `Promise.all()` in the info service
- Optimized the asynchronous operations using `Promise.all()` in the admin control panel endpoint
- Extracted the users from the admin control panel endpoint to a dedicated endpoint
- Improved the language localization for Italian (`it`)
@ -108,34 +108,42 @@ export class AdminService {
}
public async get ( ) : Promise < AdminData > {
return {
exchangeRates : this.exchangeRateDataService
. getCurrencies ( )
. filter ( ( currency ) = > {
return currency !== DEFAULT_CURRENCY ;
} )
. map ( ( currency ) = > {
const label1 = DEFAULT_CURRENCY ;
const label2 = currency ;
const exchangeRates = this . exchangeRateDataService
. getCurrencies ( )
. filter ( ( currency ) = > {
return currency !== DEFAULT_CURRENCY ;
} )
. map ( ( currency ) = > {
const label1 = DEFAULT_CURRENCY ;
const label2 = currency ;
return {
label1 ,
label2 ,
dataSource :
DataSource [
this . configurationService . get ( 'DATA_SOURCE_EXCHANGE_RATES' )
] ,
symbol : ` ${ label1 } ${ label2 } ` ,
value : this.exchangeRateDataService.toCurrency (
1 ,
DEFAULT_CURRENCY ,
currency
)
} ;
} ) ,
settings : await this . propertyService . get ( ) ,
transactionCount : await this . prismaService . order . count ( ) ,
userCount : await this . prismaService . user . count ( ) ,
return {
label1 ,
label2 ,
dataSource :
DataSource [
this . configurationService . get ( 'DATA_SOURCE_EXCHANGE_RATES' )
] ,
symbol : ` ${ label1 } ${ label2 } ` ,
value : this.exchangeRateDataService.toCurrency (
1 ,
DEFAULT_CURRENCY ,
currency
)
} ;
} ) ;
const [ settings , transactionCount , userCount ] = await Promise . all ( [
this . propertyService . get ( ) ,
this . prismaService . order . count ( ) ,
this . prismaService . user . count ( )
] ) ;
return {
exchangeRates ,
settings ,
transactionCount ,
userCount ,
version : environment.version
} ;
}