Update backend/src/apis/IotaConnector.ts

Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
This commit is contained in:
einhornimmond 2023-06-15 09:36:13 +02:00 committed by GitHub
parent 9db14ec5c6
commit 20a9de431b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,8 +32,8 @@ class IotaClientSingleton {
logger.info(`Iota are disabled via config...`)
return null
}
if (!IotaClientSingleton.IotaClint) {
IotaClientSingleton.IotaClint = new ClientBuilder().node(CONFIG.IOTA_API_URL).build()
if (!IotaClientSingleton.IotaClient) {
IotaClientSingleton.IotaClient = new ClientBuilder().node(CONFIG.IOTA_API_URL).build()
}
return IotaClientSingleton.IotaClint