From 6db67698e2714b01bf35137e9e4db04b83e6de26 Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Fri, 17 Nov 2023 10:27:16 -0500 Subject: [PATCH] updated PNID scrubbing for number values --- src/models/pnid.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/models/pnid.ts b/src/models/pnid.ts index 4bead0b..e3054cc 100644 --- a/src/models/pnid.ts +++ b/src/models/pnid.ts @@ -273,9 +273,9 @@ PNIDSchema.method('scrub', async function scrub() { this.connections.stripe.customer_id = ''; this.connections.stripe.subscription_id = ''; this.connections.stripe.price_id = ''; - this.connections.stripe.tier_level = ''; + this.connections.stripe.tier_level = 0; this.connections.stripe.tier_name = ''; - this.connections.stripe.latest_webhook_timestamp = ''; + this.connections.stripe.latest_webhook_timestamp = 0; }); PNIDSchema.method('hasPermission', function hasPermission(flag: PNIDPermissionFlag): boolean {