fix: lint

This commit is contained in:
Chris Guimaraes
2023-07-31 16:53:35 +01:00
parent 62a12bdef9
commit 82eadcbe2f
3 changed files with 3 additions and 14 deletions

View File

@@ -3327,7 +3327,6 @@ export class PgWriteStore extends PgStore {
const tables: string[] = tablesQuery.map((r: { tablename: string }) => r.tablename);
for (const table of tables) {
console.log(table)
const result = await sql`REINDEX TABLE ${sql(table)}`;
if (result.count === 0) {
throw new Error(`No updates made while toggling table indexes`);

View File

@@ -70,7 +70,7 @@ const genIdsFiles = async (dataset: DatasetStore) => {
const args = process.argv.slice(2);
let workers: number = 1;
if(args.length > 1) {
if (args.length > 1) {
workers = Number(args[1].split('=')[1]);
}

View File

@@ -268,19 +268,9 @@ export class ReplayController {
await this.ingestNewBlockEvents();
// RAW events to event_observer_requests table
await Promise.all(
[
this.ingestRawEvents(),
this.ingestRawNewBlockEvents()
]
);
await Promise.all([this.ingestRawEvents(), this.ingestRawNewBlockEvents()]);
// NEW_BURN_BLOCK and ATTACHMENTS/NEW events
await Promise.all(
[
this.ingestNewBurnBlockEvents(),
this.ingestAttachmentNewEvents()
]
);
await Promise.all([this.ingestNewBurnBlockEvents(), this.ingestAttachmentNewEvents()]);
};
}