Skip to content

Commit 4ba5ea8

Browse files
committed
fix: preview call
1 parent dd25a23 commit 4ba5ea8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/catalog/product.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ export async function handleProductPutRequest(ctx, config, request) {
152152
if (key.includes('{{urlkey}}') && product.urlKey) {
153153
path = path.replace('{{urlkey}}', product.urlKey);
154154
}
155-
const previewResponse = await callAdmin(config, 'preview', path);
155+
const previewResponse = await callAdmin(config, 'preview', path, {
156+
method: 'post',
157+
});
156158
if (!previewResponse.ok) {
157159
return errorResponse(400, 'failed to preview product');
158160
}

0 commit comments

Comments
 (0)