fix: corrigindo importação de ícones e otimizando rotas de telemetria
This commit is contained in:
parent
715304fee5
commit
586f835ae7
|
|
@ -28,7 +28,7 @@ import {
|
||||||
getCobrancasByInstallmentId, updateCobrancaLinkCarne,
|
getCobrancasByInstallmentId, updateCobrancaLinkCarne,
|
||||||
updateCobrancaByField
|
updateCobrancaByField
|
||||||
} from './services/database.js';
|
} from './services/database.js';
|
||||||
import { uploadLogo as uploadLogoToStorage, uploadCarne as uploadCarneToStorage } from './services/storage.js';
|
import { uploadLogo as uploadLogoToStorage, uploadCarne as uploadCarneToStorage, getMinioStats } from './services/storage.js';
|
||||||
|
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
|
|
@ -128,7 +128,6 @@ app.get('/api/system-stats', async (req, res) => {
|
||||||
(SELECT COUNT(*) FROM information_schema.tables WHERE table_schema='public') as table_count
|
(SELECT COUNT(*) FROM information_schema.tables WHERE table_schema='public') as table_count
|
||||||
`);
|
`);
|
||||||
|
|
||||||
const { getMinioStats } = await import('./services/storage.js');
|
|
||||||
const minioStats = await getMinioStats();
|
const minioStats = await getMinioStats();
|
||||||
|
|
||||||
res.json({
|
res.json({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue