diff --git a/backend/services/contribution-service/src/api/controllers/contribution.controller.ts b/backend/services/contribution-service/src/api/controllers/contribution.controller.ts index a6dc5831..ba82596d 100644 --- a/backend/services/contribution-service/src/api/controllers/contribution.controller.ts +++ b/backend/services/contribution-service/src/api/controllers/contribution.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Get, Param, Query } from '@nestjs/common'; +import { Controller, Get, Param, Query, NotFoundException } from '@nestjs/common'; import { ApiTags, ApiOperation, ApiResponse, ApiParam } from '@nestjs/swagger'; import { GetContributionAccountQuery } from '../../application/queries/get-contribution-account.query'; import { GetContributionStatsQuery } from '../../application/queries/get-contribution-stats.query'; diff --git a/backend/services/deploy-mining.sh b/backend/services/deploy-mining.sh index 0fbe631a..b443418e 100755 --- a/backend/services/deploy-mining.sh +++ b/backend/services/deploy-mining.sh @@ -386,7 +386,19 @@ service_build() { service_rebuild() { local service="$1" local no_cache="$2" + + # 1. Build the service service_build "$service" "$no_cache" + + # 2. Stop the old service + log_info "Stopping old $service..." + service_stop "$service" + + # 3. Start the new service + log_info "Starting new $service..." + service_start "$service" + + log_success "$service rebuilt and restarted successfully" } # ===========================================================================