From fb3f1cf4df3edd24e1d325bb9dc95d0b03439c70 Mon Sep 17 00:00:00 2001 From: Sylvain Briat Date: Mon, 6 Nov 2023 17:27:49 +0100 Subject: [PATCH 1/3] updateProto --- .../ad/interface/grpc-controllers/match.grpc-controller.ts | 1 + src/modules/ad/interface/grpc-controllers/matcher.proto | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/ad/interface/grpc-controllers/match.grpc-controller.ts b/src/modules/ad/interface/grpc-controllers/match.grpc-controller.ts index a6bf5af..0fa7bbe 100644 --- a/src/modules/ad/interface/grpc-controllers/match.grpc-controller.ts +++ b/src/modules/ad/interface/grpc-controllers/match.grpc-controller.ts @@ -32,6 +32,7 @@ export class MatchGrpcController { @UseInterceptors(CacheInterceptor) @GrpcMethod('MatcherService', 'Match') async match(data: MatchRequestDto): Promise { + console.log(data); try { const matchingResult: MatchingResult = await this.queryBus.execute( new MatchQuery(data, this.routeProvider), diff --git a/src/modules/ad/interface/grpc-controllers/matcher.proto b/src/modules/ad/interface/grpc-controllers/matcher.proto index 45ab407..0b774e7 100644 --- a/src/modules/ad/interface/grpc-controllers/matcher.proto +++ b/src/modules/ad/interface/grpc-controllers/matcher.proto @@ -24,9 +24,8 @@ message MatchRequest { int32 azimuthMargin = 15; float maxDetourDistanceRatio = 16; float maxDetourDurationRatio = 17; - int32 identifier = 18; - optional int32 page = 19; - optional int32 perPage = 20; + optional int32 page = 18; + optional int32 perPage = 19; } message ScheduleItem { From fef0779aaafd8a9068611962404eb87704d30e7f Mon Sep 17 00:00:00 2001 From: Sylvain Briat Date: Mon, 6 Nov 2023 17:27:56 +0100 Subject: [PATCH 2/3] 1.4.2 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2af8294..3addb7f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@mobicoop/matcher", - "version": "1.4.1", + "version": "1.4.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@mobicoop/matcher", - "version": "1.4.1", + "version": "1.4.2", "license": "AGPL", "dependencies": { "@grpc/grpc-js": "^1.9.9", diff --git a/package.json b/package.json index d7830e2..49ca18b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mobicoop/matcher", - "version": "1.4.1", + "version": "1.4.2", "description": "Mobicoop V3 Matcher", "author": "sbriat", "private": true, From a5bb249193f19d159ddd57f0c0167f43a58c33fa Mon Sep 17 00:00:00 2001 From: Sylvain Briat Date: Mon, 6 Nov 2023 17:31:05 +0100 Subject: [PATCH 3/3] remove forgotten console log --- .../ad/interface/grpc-controllers/match.grpc-controller.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/ad/interface/grpc-controllers/match.grpc-controller.ts b/src/modules/ad/interface/grpc-controllers/match.grpc-controller.ts index 0fa7bbe..a6bf5af 100644 --- a/src/modules/ad/interface/grpc-controllers/match.grpc-controller.ts +++ b/src/modules/ad/interface/grpc-controllers/match.grpc-controller.ts @@ -32,7 +32,6 @@ export class MatchGrpcController { @UseInterceptors(CacheInterceptor) @GrpcMethod('MatcherService', 'Match') async match(data: MatchRequestDto): Promise { - console.log(data); try { const matchingResult: MatchingResult = await this.queryBus.execute( new MatchQuery(data, this.routeProvider),