fix: update seeder to product published (#423)

This commit is contained in:
Sebastian Rindom
2021-09-29 14:07:39 +02:00
committed by GitHub
parent 42cdfde6d9
commit d8e531890d

View File

@@ -114,6 +114,9 @@ const t = async function({ directory, migrate, seedFile }) {
const variants = p.variants
delete p.variants
// default to the products being visible
p.status = p.status || "published"
p.profile_id = defaultProfile.id
if (p.is_giftcard) {
p.profile_id = gcProfile.id