Skip to content

Commit 6e633f5

Browse files
authored
oracleAddress field removed from WebhookIncomingEntity (#1817)
Temporarily disable sending webhooks to Recording Oracle
1 parent 6439095 commit 6e633f5

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { MigrationInterface, QueryRunner } from 'typeorm';
2+
3+
export class RemoveOracleAddress1712220998800 implements MigrationInterface {
4+
name = 'RemoveOracleAddress1712220998800';
5+
6+
public async up(queryRunner: QueryRunner): Promise<void> {
7+
await queryRunner.query(
8+
`ALTER TABLE "hmt"."webhook_incoming" DROP COLUMN "oracle_address"`,
9+
);
10+
}
11+
12+
public async down(queryRunner: QueryRunner): Promise<void> {
13+
await queryRunner.query(
14+
`ALTER TABLE "hmt"."webhook_incoming" ADD "oracle_address" character varying`,
15+
);
16+
}
17+
}

packages/apps/reputation-oracle/server/src/modules/cron-job/cron-job.service.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,13 @@ export class CronJobService {
178178
await escrowClient.getJobLauncherAddress(escrowAddress),
179179
)
180180
).webhookUrl,
181-
(
182-
await OperatorUtils.getLeader(
183-
chainId,
184-
await escrowClient.getRecordingOracleAddress(escrowAddress),
185-
)
186-
).webhookUrl,
181+
// Temporarily disable sending webhook to Recoring Oracle
182+
// (
183+
// await OperatorUtils.getLeader(
184+
// chainId,
185+
// await escrowClient.getRecordingOracleAddress(escrowAddress),
186+
// )
187+
// ).webhookUrl,
187188
];
188189
const webhookBody: WebhookDto = {
189190
chainId,

packages/apps/reputation-oracle/server/src/modules/webhook/webhook-incoming.entity.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ export class WebhookIncomingEntity extends BaseEntity {
1111
@Column({ type: 'int' })
1212
public chainId: ChainId;
1313

14-
@Column({ type: 'varchar', nullable: true })
15-
public oracleAddress: string;
16-
1714
@Column({ type: 'varchar' })
1815
public escrowAddress: string;
1916

0 commit comments

Comments
 (0)