Skip to content

Commit

Permalink
refactor(core): Rename order-merge-strategy config dir to order
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed May 15, 2020
1 parent 41d2091 commit 3583089
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/config/default-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { defaultCollectionFilters } from './collection/default-collection-filter
import { AutoIncrementIdStrategy } from './entity-id-strategy/auto-increment-id-strategy';
import { DefaultLogger } from './logger/default-logger';
import { TypeOrmLogger } from './logger/typeorm-logger';
import { MergeOrdersStrategy } from './order-merge-strategy/merge-orders-strategy';
import { UseGuestStrategy } from './order-merge-strategy/use-guest-strategy';
import { MergeOrdersStrategy } from './order/merge-orders-strategy';
import { UseGuestStrategy } from './order/use-guest-strategy';
import { defaultPromotionActions } from './promotion/default-promotion-actions';
import { defaultPromotionConditions } from './promotion/default-promotion-conditions';
import { defaultShippingCalculator } from './shipping-method/default-shipping-calculator';
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export * from './logger/default-logger';
export * from './logger/noop-logger';
export * from './logger/vendure-logger';
export * from './merge-config';
export * from './order-merge-strategy/order-merge-strategy';
export * from './order/order-merge-strategy';
export * from './payment-method/example-payment-method-handler';
export * from './payment-method/payment-method-handler';
export * from './promotion/default-promotion-actions';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export class MergeOrdersStrategy implements OrderMergeStrategy {
}

private findCorrespondingLine(existingOrder: Order, guestLine: OrderLine): OrderLine | undefined {
return existingOrder.lines.find(line => line.productVariant.id === guestLine.productVariant.id);
return existingOrder.lines.find((line) => line.productVariant.id === guestLine.productVariant.id);
}
}
2 changes: 1 addition & 1 deletion packages/core/src/config/vendure-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { CustomFields } from './custom-field/custom-field-types';
import { EntityIdStrategy } from './entity-id-strategy/entity-id-strategy';
import { JobQueueStrategy } from './job-queue/job-queue-strategy';
import { VendureLogger } from './logger/vendure-logger';
import { OrderMergeStrategy } from './order-merge-strategy/order-merge-strategy';
import { OrderMergeStrategy } from './order/order-merge-strategy';
import { PaymentMethodHandler } from './payment-method/payment-method-handler';
import { PromotionAction } from './promotion/promotion-action';
import { PromotionCondition } from './promotion/promotion-condition';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Test } from '@nestjs/testing';

import { ConfigService } from '../../../config/config.service';
import { MockConfigService } from '../../../config/config.service.mock';
import { MergeOrdersStrategy } from '../../../config/order-merge-strategy/merge-orders-strategy';
import { MergeOrdersStrategy } from '../../../config/order/merge-orders-strategy';
import { Order } from '../../../entity/order/order.entity';
import { createOrderFromLines } from '../../../testing/order-test-utils';

Expand Down

0 comments on commit 3583089

Please sign in to comment.