More robust error handling and logging during summaries indexing

This commit is contained in:
Mononaut
2024-01-30 16:41:35 +00:00
parent e4d92c8fe0
commit db8ba7c938
6 changed files with 49 additions and 23 deletions

View File

@@ -59,7 +59,7 @@ class BlocksAuditRepositories {
}
}
public async $getBlockAudit(hash: string): Promise<any> {
public async $getBlockAudit(hash: string): Promise<BlockAudit | null> {
try {
const [rows]: any[] = await DB.query(
`SELECT blocks_audits.height, blocks_audits.hash as id, UNIX_TIMESTAMP(blocks_audits.time) as timestamp,