From 21c89c5ce3486d189b6e670965be37adfb23c3f0 Mon Sep 17 00:00:00 2001 From: Enzo Mercanti Date: Tue, 3 Sep 2024 15:15:33 -0300 Subject: [PATCH 1/2] fix: set viewedByCustomer value corectly on quote creation --- node/resolvers/mutations/index.ts | 2 +- node/yarn.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/node/resolvers/mutations/index.ts b/node/resolvers/mutations/index.ts index 5e06940..fb55653 100644 --- a/node/resolvers/mutations/index.ts +++ b/node/resolvers/mutations/index.ts @@ -127,7 +127,7 @@ export const Mutation = { status, subtotal, updateHistory, - viewedByCustomer: sendToSalesRep, + viewedByCustomer: !!sendToSalesRep, viewedBySales: !sendToSalesRep, salesChannel, } diff --git a/node/yarn.lock b/node/yarn.lock index 4ce9b82..704ce0e 100644 --- a/node/yarn.lock +++ b/node/yarn.lock @@ -1522,7 +1522,7 @@ sprintf-js@~1.0.2: resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= -"stats-lite@github:vtex/node-stats-lite#dist": +stats-lite@vtex/node-stats-lite#dist: version "2.2.0" resolved "https://codeload.github.com/vtex/node-stats-lite/tar.gz/1b0d39cc41ef7aaecfd541191f877887a2044797" dependencies: From c1cab659e6ec28dd7dd7f67c003a43acfef333e0 Mon Sep 17 00:00:00 2001 From: Enzo Mercanti Date: Tue, 3 Sep 2024 15:24:34 -0300 Subject: [PATCH 2/2] fix: changelog --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index df83628..6e84450 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Set viewedByCustomer value corectly on quote creation + ## [2.5.4] - 2024-08-20 ### Fixed