@bash-app/bash-common 29.47.0 → 29.48.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "29.47.0",
3
+ "version": "29.48.1",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -987,8 +987,8 @@ model ServiceListingSubscription {
987
987
  stripeCheckoutSessionId String? @unique
988
988
  stripeSubscriptionId String? @unique
989
989
 
990
- lastCheckoutSessionCreatedAt DateTime
991
- checkoutInProgress Boolean @default(false)
990
+ // lastCheckoutSessionCreatedAt DateTime
991
+ // checkoutInProgress Boolean @default(false)
992
992
 
993
993
  subscriptionStatus ServiceSubscriptionStatus @default(None)
994
994
 
@@ -232,3 +232,7 @@ export function localDateToUTC(date: Date): Date {
232
232
 
233
233
  return newDate;
234
234
  }
235
+
236
+ export function timestampMinutseFromNow(minutes: number): number {
237
+ return Math.floor((new Date().getTime() / 1000) + (minutes * 60));
238
+ }