Skip to content

Commit 9613a50

Browse files
committed
Add logging for Printful webhook events
1 parent 5de37b8 commit 9613a50

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/src/api/PrintfulWebhooksResource.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const router = express.Router();
1212

1313
router.post<'/', unknown, unknown, Webhook, unknown>('/', async (req, res) => {
1414
const event = req.body;
15+
console.log('[Printful webhook]', event);
1516
switch (event.type) {
1617
case 'order_updated': {
1718
const order = (event as OrderUpdated).data.order;

0 commit comments

Comments
 (0)