mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-16 17:39:08 +00:00
REFACTOR: rename pii reporter
This commit is contained in:
@@ -110,8 +110,16 @@ class CatalogService implements OnModuleInit {
|
||||
'pdf': 'application/pdf'
|
||||
}
|
||||
|
||||
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
|
||||
const filename = `relatorio-pii-${timestamp}.${type}`;
|
||||
const date = new Date()
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
const hours = String(date.getHours()).padStart(2, '0');
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
const seconds = String(date.getSeconds()).padStart(2, '0');
|
||||
|
||||
const timestamp = `${year}${month}${day}_${hours}${minutes}${seconds}`;
|
||||
const filename = `dadosfera_pii_report_${timestamp}.${type}`;
|
||||
|
||||
return {
|
||||
file,
|
||||
|
||||
Reference in New Issue
Block a user