feat: Allow retrieval of soft-deleted products (#723)

This commit is contained in:
Oliver Windall Juhl
2021-11-10 22:23:56 +01:00
committed by GitHub
parent 6f4e128944
commit 1e50aee4fe
5 changed files with 111 additions and 17 deletions
@@ -271,4 +271,16 @@ module.exports = async (connection, data = {}) => {
})
await manager.save(product3)
const product4 = manager.create(Product, {
id: "test-product_filtering_4",
handle: "test-product_filtering_4",
title: "Test product filtering 4",
profile_id: defaultProfile.id,
description: "test-product-description",
status: "proposed",
deleted_at: new Date().toISOString(),
})
await manager.save(product4)
}