Skip to content

Commit

Permalink
Log when a user starts the migration to Paddle.
Browse files Browse the repository at this point in the history
  • Loading branch information
igoramadas committed Sep 12, 2024
1 parent 8f4a566 commit 17364a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/routes/api/paddle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ router.post("/:userId/customer", async (req: express.Request, res: express.Respo
throw new Error("Missing Paddle ID")
}

if (req.params.migration == "1") {
logger.info("Routes.paddle", `User ${user.id} started migration of PayPal ${user.subscriptionId} to Paddle`)
}

// Update user Paddle customer and transaction IDs.
user.paddleId = data.id
user.paddleTransactionId = data.transactionId
Expand Down

0 comments on commit 17364a2

Please sign in to comment.