diff --git a/CHANGELOG.md b/CHANGELOG.md index 913a8b3..0b7ac3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,11 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- Correct "not found" message from the Ad Server. + ## [2.1.0] - 2024-07-09 ### Added -- Pass `placement` and `count` from the frontend to the Ad Server; +- Pass `placement` and `count` from the frontend to the Ad Server. ## [2.0.0] - 2024-04-22 diff --git a/node/clients/AdServer.ts b/node/clients/AdServer.ts index 4ac7049..bc2a2ac 100644 --- a/node/clients/AdServer.ts +++ b/node/clients/AdServer.ts @@ -7,7 +7,7 @@ class AdServer extends ExternalClient { public static BASE_URL = 'https://ad-server.vtex.systems' public static ERROR_MESSAGES = { - AD_NOT_FOUND: 'Ad not found\n', + AD_NOT_FOUND: 'Ad not found', } constructor(ctx: IOContext, options?: InstanceOptions) { diff --git a/node/yarn.lock b/node/yarn.lock index c89304a..ea2b91b 100644 --- a/node/yarn.lock +++ b/node/yarn.lock @@ -4410,7 +4410,7 @@ static-extend@^0.1.1: define-property "^0.2.5" object-copy "^0.1.0" -stats-lite@vtex/node-stats-lite#dist: +"stats-lite@github:vtex/node-stats-lite#dist": version "2.2.0" resolved "https://codeload.github.com/vtex/node-stats-lite/tar.gz/1b0d39cc41ef7aaecfd541191f877887a2044797" dependencies: