Skip to content

Commit 32578c5

Browse files
committed
feat(revenue): normalize payment events and reporting
1 parent 8ae3e5e commit 32578c5

25 files changed

Lines changed: 5277 additions & 1026 deletions

apps/basket/src/lib/event-service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,7 @@ export function insertOutgoingLink(
240240
});
241241
}
242242

243-
export function insertTrackEventsBatch(
244-
events: EventsInsert[]
245-
): Promise<void> {
243+
export function insertTrackEventsBatch(events: EventsInsert[]): Promise<void> {
246244
return record("insertTrackEventsBatch", async () => {
247245
if (events.length === 0) {
248246
return;

apps/basket/src/routes/webhooks/paddle.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const VALID_PAYLOAD = JSON.stringify({
2222
details: { totals: { total: "1000" } },
2323
},
2424
});
25-
2625
describe("verifyPaddleSignature", () => {
2726
test("valid Paddle Billing signature -> accepted", () => {
2827
const result = verifyPaddleSignature(VALID_PAYLOAD, sign(VALID_PAYLOAD), SECRET);

0 commit comments

Comments
 (0)