From ed1fda209a5b0e026ad85292237b08f1f1eedf30 Mon Sep 17 00:00:00 2001 From: lserra-iov Date: Tue, 10 Sep 2024 14:30:47 -0300 Subject: [PATCH 1/2] Save flyover quote hash --- src/models/flyover-status.model.ts | 1 + src/models/register-payload.model.ts | 5 +++++ src/services/flyover.service.ts | 2 ++ 3 files changed, 8 insertions(+) diff --git a/src/models/flyover-status.model.ts b/src/models/flyover-status.model.ts index 5df3f276..ff3b0683 100644 --- a/src/models/flyover-status.model.ts +++ b/src/models/flyover-status.model.ts @@ -9,6 +9,7 @@ export class FlyoverStatusModel implements SearchableModel { blockToBeFinished: number; senderAddress: string; recipientAddress: string; + quoteHash: string; getId() { return this.txHash; diff --git a/src/models/register-payload.model.ts b/src/models/register-payload.model.ts index d52ff3c0..78dfc157 100644 --- a/src/models/register-payload.model.ts +++ b/src/models/register-payload.model.ts @@ -61,6 +61,11 @@ export class RegisterPayload extends Model { type: 'object', }) details?: Record; + + @property({ + type: 'string', + }) + quoteHash?: string; constructor(data?: Partial) { //NOSONAR super(data); diff --git a/src/services/flyover.service.ts b/src/services/flyover.service.ts index 3c205695..92a0df25 100644 --- a/src/services/flyover.service.ts +++ b/src/services/flyover.service.ts @@ -16,6 +16,7 @@ const FlyoverStatusSchema = new mongoose.Schema({ blockToBeFinished: {type: Number, required: true}, senderAddress: {type: String, required: true}, recipientAddress: {type: String, required: true}, + quoteHash: {type: String, required: true}, }); const FlyoverStatusConnector = mongoose.model('FlyoverStatuses', FlyoverStatusSchema); @@ -83,6 +84,7 @@ export class FlyoverService extends MongoDbDataService Date: Tue, 17 Sep 2024 11:48:02 -0300 Subject: [PATCH 2/2] Add quote hash to response --- src/services/flyover.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/flyover.service.ts b/src/services/flyover.service.ts index 92a0df25..68d28fe4 100644 --- a/src/services/flyover.service.ts +++ b/src/services/flyover.service.ts @@ -70,6 +70,7 @@ export class FlyoverService extends MongoDbDataService