Skip to content

Commit

Permalink
fix: add paymentTerms to create cost mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
rayssamfreitas committed Jul 4, 2024
1 parent cb328e9 commit 0f2c3c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.51.0",
"dependencies": {
"@types/lodash": "4.14.74",
"@vtex/api": "6.46.1",
"@vtex/api": "6.47.0",
"atob": "^2.1.2",
"co-body": "^6.0.0",
"graphql": "^14.5.0",
Expand All @@ -20,7 +20,7 @@
"@types/jsonwebtoken": "^8.5.0",
"@types/node": "^12.12.21",
"@types/ramda": "types/npm-ramda#dist",
"@vtex/api": "6.46.1",
"@vtex/api": "6.47.0",
"@vtex/prettier-config": "^0.3.1",
"@vtex/tsconfig": "^0.6.0",
"jest": "27.5.1",
Expand Down
4 changes: 4 additions & 0 deletions node/resolvers/Mutations/CostCenters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const CostCenters = {
customFields,
marketingTags,
sellers,
paymentTerms,
},
}: { organizationId: string; input: CostCenterInput },
ctx: Context
Expand Down Expand Up @@ -70,6 +71,7 @@ const CostCenters = {
phoneNumber,
sellers,
stateRegistration,
paymentTerms
}

return await CostCenterRepository.createCostCenter(
Expand Down Expand Up @@ -101,6 +103,7 @@ const CostCenters = {
customFields,
marketingTags,
sellers,
paymentTerms,
},
}: { organizationId: string; input: CostCenterInputWithId },
ctx: Context
Expand Down Expand Up @@ -145,6 +148,7 @@ const CostCenters = {
phoneNumber,
sellers,
stateRegistration,
paymentTerms,
}

const { id: costCenterId } = await CostCenterRepository.createCostCenter(
Expand Down
8 changes: 4 additions & 4 deletions node/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -836,10 +836,10 @@
dependencies:
"@types/yargs-parser" "*"

"@vtex/api@6.46.1":
version "6.46.1"
resolved "https://registry.yarnpkg.com/@vtex/api/-/api-6.46.1.tgz#55a8755ae48f5400e7f1ed1921cd547950bb7a2a"
integrity sha512-geoxVvyWoQpOQ70Zmx3M8SBkRoGOS/bp9Gy26M+iCue63jofVSwmFz1zf66EaHA1PKOJNRgQPFwY+oeDE1U2lQ==
"@vtex/api@6.47.0":
version "6.47.0"
resolved "https://registry.yarnpkg.com/@vtex/api/-/api-6.47.0.tgz#6910455d593d8bb76f1f4f2b7660023853fda35e"
integrity sha512-t9gt7Q89EMbSj3rLhho+49Fv+/lQgiy8EPVRgtmmXFp1J4v8hIAZF7GPjCPie111KVs4eG0gfZFpmhA5dafKNA==
dependencies:
"@types/koa" "^2.11.0"
"@types/koa-compose" "^3.2.3"
Expand Down

0 comments on commit 0f2c3c8

Please sign in to comment.