Skip to content

Commit 7100e22

Browse files
committed
debug: display available fields
1 parent 49002c4 commit 7100e22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/functions/pre-payment-webhook-webflow/pre-payment-webhook-webflow.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ function sufficientInventory(comparable) {
302302
if (inventoryField === undefined) {
303303
// The Webflow collection does not have the proper inventory field: ignore
304304
console.log(`Warning: the inventory field (${inventoryField}) does not exist in this webflow collection. Skipping inventory check.`);
305+
console.debug(`Available fields: `, Object.keys(wfItem));
305306
return true;
306307
}
307308
const fxQuantity = Number(fxItem.quantity);

0 commit comments

Comments
 (0)