diff --git a/src/database/migrations/1727776349408-adjust-configuration-table.ts b/src/database/migrations/1727776349408-adjust-configuration-table.ts new file mode 100644 index 0000000..e77c858 --- /dev/null +++ b/src/database/migrations/1727776349408-adjust-configuration-table.ts @@ -0,0 +1,12 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class AdjustConfigurationTable1727776349408 implements MigrationInterface { + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE common_configuration + ALTER COLUMN tip TYPE NUMERIC(100, 4);`); + await queryRunner.query(`ALTER TABLE common_configuration + ALTER COLUMN daily_quota TYPE NUMERIC(100, 4);`); + } + + public async down(queryRunner: QueryRunner): Promise {} +} diff --git a/src/modules/crawler/crawler.console.ts b/src/modules/crawler/crawler.console.ts index e3fdeb3..b512bd7 100644 --- a/src/modules/crawler/crawler.console.ts +++ b/src/modules/crawler/crawler.console.ts @@ -111,7 +111,7 @@ export class CrawlerConsole { try { while (true) { await this.senderMinaBridge.handleUnlockMina(); - await sleep(3); + await sleep(15); } } catch (error) { this.logger.error(error);