properly removed all merge conflicts
This commit is contained in:
@@ -149,11 +149,7 @@ export default async (req, res) => {
|
||||
.withTransaction(manager)
|
||||
.retrieve(id)
|
||||
|
||||
<<<<<<< HEAD
|
||||
const evaluatedNoNotification = value.no_notification !== undefined && value.no_notification !== null ? value.no_notification : order.no_notification
|
||||
=======
|
||||
const evaluatedNoNotification = value.no_notification !== undefined ? value.no_notification : order.no_notification
|
||||
>>>>>>> 04fe5292f7e9dcd14cb1a4ea17db8978f9b52c03
|
||||
returnObj.no_notification = evaluatedNoNotification
|
||||
|
||||
const createdReturn = await returnService
|
||||
|
||||
@@ -8,25 +8,16 @@ export class noNotification1623231564533 implements MigrationInterface {
|
||||
await queryRunner.query(`ALTER TABLE "claim_order" ADD "no_notification" boolean`);
|
||||
await queryRunner.query(`ALTER TABLE "swap" ADD "no_notification" boolean`);
|
||||
await queryRunner.query(`ALTER TABLE "order" ADD "no_notification" boolean`);
|
||||
<<<<<<< HEAD
|
||||
await queryRunner.query(`ALTER TABLE "draft_order" ADD "no_notification_order" boolean`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE "draft_order" DROP COLUMN "no_notification_order"`);
|
||||
=======
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
>>>>>>> 04fe5292f7e9dcd14cb1a4ea17db8978f9b52c03
|
||||
await queryRunner.query(`ALTER TABLE "order" DROP COLUMN "no_notification"`);
|
||||
await queryRunner.query(`ALTER TABLE "swap" DROP COLUMN "no_notification"`);
|
||||
await queryRunner.query(`ALTER TABLE "claim_order" DROP COLUMN "no_notification"`);
|
||||
await queryRunner.query(`ALTER TABLE "return" DROP COLUMN "no_notification"`);
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
>>>>>>> 04fe5292f7e9dcd14cb1a4ea17db8978f9b52c03
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -215,16 +215,9 @@ describe("ClaimService", () => {
|
||||
it.each(
|
||||
[
|
||||
[false, false],
|
||||
<<<<<<< HEAD
|
||||
[undefined, true],
|
||||
[null, true],
|
||||
])
|
||||
("passes correct no_notification status to event bus, with '%s'", async (input, expected) => {
|
||||
=======
|
||||
[undefined, true]
|
||||
],
|
||||
"passes correct no_notification status to event bus", async (input, expected) => {
|
||||
>>>>>>> 04fe5292f7e9dcd14cb1a4ea17db8978f9b52c03
|
||||
await claimService.create({
|
||||
...testClaim,
|
||||
no_notification: input,
|
||||
@@ -234,10 +227,6 @@ describe("ClaimService", () => {
|
||||
id: expect.any(String),
|
||||
no_notification: expected
|
||||
})
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
|
||||
>>>>>>> 04fe5292f7e9dcd14cb1a4ea17db8978f9b52c03
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -1134,12 +1134,7 @@ describe("OrderService", () => {
|
||||
it.each([
|
||||
[false, false],
|
||||
[undefined, true],
|
||||
<<<<<<< HEAD
|
||||
[null, true],
|
||||
])("emits correct no_notification option with '%s'", async (input, expected) => {
|
||||
=======
|
||||
],"emits correct no_notification option", async (input, expected) => {
|
||||
>>>>>>> 04fe5292f7e9dcd14cb1a4ea17db8978f9b52c03
|
||||
await orderService.createRefund(
|
||||
IdMap.getId("order_123"),
|
||||
100,
|
||||
|
||||
@@ -345,12 +345,7 @@ describe("SwapService", () => {
|
||||
[true, true],
|
||||
[false, false],
|
||||
[undefined, true],
|
||||
<<<<<<< HEAD
|
||||
[null, true],
|
||||
])( "passes correct no_notification to eventBus with '%s'", async (input, expected) => {
|
||||
=======
|
||||
])( "passes correct no_notification to eventBus with %s", async (input, expected) => {
|
||||
>>>>>>> 04fe5292f7e9dcd14cb1a4ea17db8978f9b52c03
|
||||
|
||||
await swapService.create(
|
||||
testOrder,
|
||||
|
||||
@@ -241,11 +241,7 @@ class ClaimService extends BaseService {
|
||||
)
|
||||
)
|
||||
|
||||
<<<<<<< HEAD
|
||||
const evaluatedNoNotification = no_notification !== undefined && no_notification !== null ? no_notification : order.no_notification
|
||||
=======
|
||||
const evaluatedNoNotification = no_notification !== undefined ? no_notification : order.no_notification
|
||||
>>>>>>> 04fe5292f7e9dcd14cb1a4ea17db8978f9b52c03
|
||||
|
||||
const created = claimRepo.create({
|
||||
shipping_address_id: addressId,
|
||||
|
||||
@@ -238,11 +238,7 @@ class SwapService extends BaseService {
|
||||
})
|
||||
)
|
||||
|
||||
<<<<<<< HEAD
|
||||
const evaluatedNoNotification = noNotification !== undefined && noNotification !== null ? noNotification : order.no_notification
|
||||
=======
|
||||
const evaluatedNoNotification = noNotification !== undefined ? noNotification : order.no_notification
|
||||
>>>>>>> 04fe5292f7e9dcd14cb1a4ea17db8978f9b52c03
|
||||
|
||||
const swapRepo = manager.getCustomRepository(this.swapRepository_)
|
||||
const created = swapRepo.create({
|
||||
|
||||
Reference in New Issue
Block a user