fix: Fixed service name retrieval
This commit is contained in:
parent
9d85aba937
commit
16994607bb
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
@ -38,7 +38,7 @@ async function main() {
|
|||
const results = await srv.parseCurrencies();
|
||||
|
||||
if (Array.isArray(results) && results.length > 0) {
|
||||
console.log(`Data received from ${srv.name || 'unknown service'}:`, results.length, 'items');
|
||||
console.log(`Data received from ${srv.info.name || 'unknown service'}:`, results.length, 'items');
|
||||
|
||||
for (const result of results) {
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue