diff --git a/.github/workflows/deploy-lambda-to-ecr.yml b/.github/workflows/deploy-lambda-to-ecr.yml index 601c156..422f184 100644 --- a/.github/workflows/deploy-lambda-to-ecr.yml +++ b/.github/workflows/deploy-lambda-to-ecr.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - lambda-with-metrics jobs: build: diff --git a/routes/packages.ts b/routes/packages.ts index d633304..0814b9a 100644 --- a/routes/packages.ts +++ b/routes/packages.ts @@ -94,6 +94,7 @@ export const packages = (router: Router) => { router.get( "/packages/latest", asyncHandler(async (req, res) => { + console.log("Getting latest packages") const initialMongoQuery = {}; return await findPackage(req, res, initialMongoQuery); }) @@ -109,7 +110,7 @@ export const packages = (router: Router) => { if (!req.query.toTimestamp) { throw new Error("toTimestamp query param is required"); } - + console.log("Getting packages by timestamp") const initialMongoQuery = { timestamp: { $lte: req.query.toTimestamp }, }; diff --git a/routes/prices.ts b/routes/prices.ts index 615e41f..6049458 100644 --- a/routes/prices.ts +++ b/routes/prices.ts @@ -276,6 +276,7 @@ export const prices = (router: Router) => { eventProps: params, ip: getIp(req), }); + console.log("Getting prices") // Getting provider details const providerDetails = await getProviderFromParams(params);