Skip to content

Commit

Permalink
fix(deps): upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Baulig committed Nov 20, 2024
1 parent 48f5001 commit 021fe53
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 27 deletions.
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
},
"type": "module",
"dependencies": {
"@restorecommerce/acs-client": "3.0.7",
"@restorecommerce/acs-client": "3.0.8",
"@restorecommerce/cart": "^1.0.9",
"@restorecommerce/chassis-srv": "1.6.4",
"@restorecommerce/chassis-srv": "^1.6.4",
"@restorecommerce/grpc-client": "^2.2.4",
"@restorecommerce/kafka-client": "1.2.20",
"@restorecommerce/logger": "^1.3.1",
"@restorecommerce/rc-grpc-clients": "^5.1.42",
"@restorecommerce/resource-base-interface": "1.6.4",
"@restorecommerce/rc-grpc-clients": "^5.1.43",
"@restorecommerce/resource-base-interface": "^1.6.4",
"@restorecommerce/service-config": "^1.0.15",
"@types/soap": "0.18.0",
"@types/xml-js": "0.9.0",
Expand Down
6 changes: 3 additions & 3 deletions src/services/fulfillment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ export class FulfillmentService
): Promise<FulfillmentListResponse> {
try {
await this.getFulfillmentsByIds(
request.items.map(item => item.id),
request.items?.map(item => item.id),
request.subject,
context,
).then(
Expand All @@ -1065,8 +1065,8 @@ export class FulfillmentService
throw response.operation_status;
}
else {
const result_map = new Map(response.items.map(item => [item.payload.id, item]));
request.items = request.items.map(
const result_map = new Map(response.items?.map(item => [item.payload.id, item]));
request.items = request.items?.map(
item => ({
...result_map.get(item.id)?.payload,
...item
Expand Down
2 changes: 1 addition & 1 deletion src/services/fulfillment_courier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class FulfillmentCourierService
cfg.get('database:main:collections:1') ?? 'fulfillment_couriers',
cfg.get('fieldHandlers:fulfillment_courier')
),
cfg.get('events:enableEvents')?.toString() === 'true'
cfg.get('events:enableEvents')?.toString() === 'true',
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/services/fulfillment_product.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class FulfillmentProductService
cfg.get('database:main:collections:2') ?? 'fulfillment_products',
cfg.get('fieldHandlers:fulfillment_product')
),
cfg.get('events:enableEvents')?.toString() === 'true'
cfg.get('events:enableEvents')?.toString() === 'true',
);

this.status_codes = {
Expand Down Expand Up @@ -559,7 +559,7 @@ export class FulfillmentProductService
}

const ids = [...new Set(
query.preferences?.courier_ids?.map(id => id) ?? []
query.preferences?.fulfillment_product_ids?.map(id => id) ?? []
).values()];
const call = ReadRequest.fromPartial({
filters: [{
Expand Down
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {
Status
} from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/status.js';
import { Attribute } from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/attribute.js';
import { PhysicalProduct, PhysicalVariant } from '@restorecommerce/rc-grpc-clients/dist/generated-server/io/restorecommerce/product.js';

export type CRUDClient = Client<TaxServiceDefinition>
| Client<UserServiceDefinition>
Expand Down
3 changes: 2 additions & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,9 @@ export class Worker {
});

// start server
this.logger.info('Server starting...');
await this.server.start();
this.logger.info('server started successfully');
this.logger.info('Server started and ready to use.');
}

async stop(): Promise<any> {
Expand Down

0 comments on commit 021fe53

Please sign in to comment.