Update various dependencies and refactor filename

The commit incorporates several updates to the dependencies in 'pnpm-lock.yaml', including 'autoprefixer', '@babel/types', and '@react-email/components'. Alongside these changes, the filename 'I18nProvider.tsx' in 'packages/i18n/package.json' has been refactored to 'i18n-provider.tsx' for better readability and naming convention consistency.
This commit is contained in:
giancarlo
2024-03-28 22:47:37 +08:00
parent c92e65b1ec
commit 7f5438ed02
2 changed files with 117 additions and 380 deletions

View File

@@ -77,7 +77,7 @@ async function loadAccountData(accountId: string) {
const subscription = client
.from('subscriptions')
.select<string, Database['public']['Tables']['subscriptions']['Row']>('*')
.select('*')
.eq('account_id', accountId)
.maybeSingle()
.then(({ data }) => data);
@@ -86,7 +86,8 @@ async function loadAccountData(accountId: string) {
.from('billing_customers')
.select('customer_id')
.eq('account_id', accountId)
.maybeSingle();
.maybeSingle()
.then(({ data }) => data?.customer_id);
return Promise.all([subscription, customerId]);
}