add missing change

This commit is contained in:
einhornimmond 2025-10-24 07:20:49 +02:00
parent e2cda2c297
commit 4b59cf2377

View File

@ -18,6 +18,7 @@ export class BackendClient {
private static instance: BackendClient
client: GraphQLClient
logger: Logger
urlValue: string
/**
* The Singleton's constructor should always be private to prevent direct
@ -25,8 +26,10 @@ export class BackendClient {
*/
private constructor() {
this.logger = getLogger(`${LOG4JS_BASE_CATEGORY}.client.BackendClient`)
this.logger.addContext('url', CONFIG.BACKEND_SERVER_URL)
this.client = new GraphQLClient(CONFIG.BACKEND_SERVER_URL, {
this.urlValue = `http://localhost:${CONFIG.PORT}`
this.logger.addContext('url', this.urlValue)
this.client = new GraphQLClient(this.urlValue, {
headers: {
'content-type': 'application/json',
},
@ -38,6 +41,10 @@ export class BackendClient {
})
}
public get url(): string {
return this.url
}
/**
* The static method that controls the access to the singleton instance.
*