Skip to content

Commit b60e52d

Browse files
committed
wip
1 parent 488e041 commit b60e52d

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

apps/local-first/sync-server/purchase-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as HttpApiClient from '@effect/platform/HttpApiClient'
2-
import { PurchaseApi } from '@infra/purchase/api'
2+
import { PurchaseApi } from '@xstack/purchase/http-api'
33
import * as WorkerService from '@xstack/cloudflare/worker-service'
44
import * as Effect from 'effect/Effect'
55

apps/local-first/sync-server/session.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as FetchHttpClient from '@effect/platform/FetchHttpClient'
22
import * as HttpClient from '@effect/platform/HttpClient'
33
import * as HttpClientRequest from '@effect/platform/HttpClientRequest'
4-
import type { SubscriptionInfo } from '@infra/purchase/schema'
5-
import { UserSession } from '@xstack/local-first/server/schema'
4+
import { UserSession } from '@xstack/event-log-server/server/schema'
5+
import type { SubscriptionInfo } from '@xstack/purchase/schema'
66
import type * as Brand from 'effect/Brand'
77
import * as Cause from 'effect/Cause'
88
import * as Effect from 'effect/Effect'
@@ -58,7 +58,7 @@ export const sessionFromToken = (namespace: string, token: Redacted.Redacted<str
5858
return pipe(
5959
subscription,
6060
Option.map((s) => (s.isActive ? 'Pro' : 'Basic')),
61-
Option.getOrElse(() => 'Basic' as Tier),
61+
Option.getOrElse(() => 'Basic'),
6262
)
6363
}, Effect.withSpan('getTier'))
6464

apps/rn/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"path": "./tsconfig.test.json"
99
}
1010
],
11-
"include": ["nativewind-env.d.ts"],
11+
"include": [],
1212
"files": []
1313
}

apps/shared/tsconfig.base.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"@xstack/toaster": ["../../packages/toaster/src/"],
3838
"@xstack/router/*": ["../../packages/router/src/*"],
3939
"@xstack/router": ["../../packages/router/src/"],
40+
"@xstack/purchase/*": ["../../packages/purchase/src/*"],
4041
"@xstack/emails/*": ["../../packages/emails/src/*"],
4142
"@xstack/form/*": ["../../packages/form/src/*"],
4243
"@xstack/i18n/*": ["../../packages/i18n/src/*"],

0 commit comments

Comments
 (0)