mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 08:34:40 +08:00
fix: lint
This commit is contained in:
@@ -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`);
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
@@ -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()]);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user