Skip to content

Commit 922d3b5

Browse files
committed
Use the as any type assertion
1 parent bccef87 commit 922d3b5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/server/auth/user-settings.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ export async function createUserSettings(
6565
businessName: input.businessName ?? null,
6666
logoUrl: input.logoUrl ?? null,
6767
country: input.country ?? null,
68-
defaultCurrency: input.defaultCurrency ?? 'USD',
68+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
69+
defaultCurrency: (input.defaultCurrency ?? 'USD') as any,
6970
estimatedTaxRate: input.estimatedTaxRate ?? 0,
7071
},
7172
});
@@ -104,7 +105,8 @@ export async function updateUserSettings(
104105
updateData.country = input.country;
105106
}
106107
if (input.defaultCurrency !== undefined) {
107-
updateData.defaultCurrency = input.defaultCurrency;
108+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
109+
updateData.defaultCurrency = input.defaultCurrency as any;
108110
}
109111
if (input.estimatedTaxRate !== undefined) {
110112
updateData.estimatedTaxRate = input.estimatedTaxRate;

0 commit comments

Comments
 (0)