Skip to content

Commit

Permalink
bump to ct version 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
BramKaashoek committed Jul 22, 2021
1 parent 79b9b22 commit d41b677
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"typescript": "^4.2.4"
},
"dependencies": {
"@commercetools/platform-sdk": "1.10.0",
"@commercetools/platform-sdk": "1.16.0",
"ajv": "^8.1.0",
"ajv-formats": "^2.0.2",
"basic-auth": "^2.0.1",
Expand Down
6 changes: 5 additions & 1 deletion src/repositories/inventory-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ export class InventoryEntryRepository extends AbstractRepository {
availableQuantity: draft.quantityOnStock,
expectedDelivery: draft.expectedDelivery,
restockableInDays: draft.restockableInDays,
supplyChannel: draft.supplyChannel,
supplyChannel: {
...draft.supplyChannel,
typeId: 'channel',
id: draft.supplyChannel?.id ?? '',
},
custom: createCustomFields(draft.custom, projectKey, this._storage),
}
this.save(projectKey, resource)
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -905,10 +905,10 @@
exec-sh "^0.3.2"
minimist "^1.2.0"

"@commercetools/platform-sdk@^1.10.0":
version "1.10.0"
resolved "https://registry.yarnpkg.com/@commercetools/platform-sdk/-/platform-sdk-1.10.0.tgz#71d2a9f319a3925fbc920c3e48471da434f2fac9"
integrity sha512-FIHVVEnBCWsKMOXzFJpe88GzNIKhRl7gL7FFZLLvZXj0IQTStN9sYV+e1BL4q1CF6MtBErvSswpdGYzMQ1X1EQ==
"@commercetools/platform-sdk@1.16.0":
version "1.16.0"
resolved "https://registry.yarnpkg.com/@commercetools/platform-sdk/-/platform-sdk-1.16.0.tgz#901eff31742bf21aaae74194d288d1a391711ce9"
integrity sha512-44+NjlGzFX4kLTw11PEbSL6nuIYKxdM+n/bJ/LVpGQf3aS1xBRotrzp8I/nz3tMhH++6i9GWbidQX5bg7gteow==
dependencies:
"@commercetools/sdk-client" "^2.1.1"
"@commercetools/sdk-middleware-auth" "^6.0.4"
Expand Down

0 comments on commit d41b677

Please sign in to comment.