Merge pull request #4637 from mempool/mononaut/summaries-indexing-error

More robust error handling and logging during summaries indexing
This commit is contained in:
softsimon
2024-02-03 20:39:09 +08:00
committed by GitHub
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,