File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,6 @@ export const websitesApi = {
277277} ;
278278
279279export type User = ( typeof auth ) [ '$Infer' ] [ 'Session' ] [ 'user' ] & {
280- role ?: 'owner ' | 'admin ' | 'member ' | 'viewer ' ;
280+ role ?: 'OWNER ' | 'ADMIN ' | 'MEMBER ' | 'VIEWER ' ;
281281} ;
282282export type Session = ( typeof auth ) [ '$Infer' ] [ 'Session' ] ;
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ import { Autumn } from 'autumn-js';
55
66const autumn = new Autumn ( ) ;
77
8+ const isDevelopment = process . env . NODE_ENV === 'development' ;
9+
810export async function checkAndTrackWebsiteCreation ( customerId : string ) {
11+ if ( isDevelopment ) {
12+ return { allowed : true } ;
13+ }
14+
915 if ( ! customerId ) {
1016 return { allowed : true } ;
1117 }
@@ -30,6 +36,10 @@ export async function checkAndTrackWebsiteCreation(customerId: string) {
3036}
3137
3238export async function trackWebsiteUsage ( customerId : string , value : number ) {
39+ if ( isDevelopment ) {
40+ return { success : true } ;
41+ }
42+
3343 if ( ! customerId ) {
3444 return { success : false } ;
3545 }
You can’t perform that action at this time.
0 commit comments