fix: Fixed service name retrieval

This commit is contained in:
Danil 2025-04-12 14:40:12 +03:00
parent 9d85aba937
commit 16994607bb

View file

@ -38,7 +38,7 @@ async function main() {
const results = await srv.parseCurrencies(); const results = await srv.parseCurrencies();
if (Array.isArray(results) && results.length > 0) { 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) { for (const result of results) {
try { try {