Skip to content

Commit 004ce51

Browse files
committed
chore: remove sub banner
1 parent faed8f3 commit 004ce51

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

apps/api/orpc/routers/banner.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { LATEST_VERSION_BEFORE_SUBSCRIPTION, SUBSCRIPTION_PAST_DUE_MESSAGE } from '@conar/shared/constants'
1+
import { SUBSCRIPTION_PAST_DUE_MESSAGE } from '@conar/shared/constants'
22
import { type } from 'arktype'
33
import { env } from '~/env'
4-
import { stripe } from '~/lib/stripe'
54
import { getSubscription, optionalAuthMiddleware, orpc } from '~/orpc'
65

76
const bannerType = type({
@@ -17,16 +16,6 @@ export const banner = orpc
1716

1817
const items: typeof bannerType.infer = []
1918

20-
if (stripe
21-
&& context.minorVersion
22-
&& context.minorVersion < LATEST_VERSION_BEFORE_SUBSCRIPTION
23-
) {
24-
items.push({
25-
text: 'Some features now require a subscription. Please update the app and subscribe to a plan to continue using them.',
26-
type: 'info',
27-
})
28-
}
29-
3019
if (subscription?.status === 'past_due') {
3120
items.push({
3221
text: SUBSCRIPTION_PAST_DUE_MESSAGE,

0 commit comments

Comments
 (0)