0 is out of stock and nothing is available from now on
This commit is contained in:
@@ -177,7 +177,7 @@ pub async fn seed_catalog(ctx: &AppContext) -> Result<()> {
|
||||
label: Set(String::new()),
|
||||
position: Set(0),
|
||||
sku: Set(item.sku.map(|s| s.to_string())),
|
||||
stock: Set(item.stock),
|
||||
stock: Set(Some(item.stock)),
|
||||
price_cents: Set(item.price_cents),
|
||||
..Default::default()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user