mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
chore: organize ts types, fix eslint errors
This commit is contained in:
@@ -13,7 +13,7 @@ export const getSettings = cache(async (userId: string): Promise<SettingsMap> =>
|
||||
}, {} as SettingsMap)
|
||||
})
|
||||
|
||||
export const updateSettings = cache(async (userId: string, code: string, value: any) => {
|
||||
export const updateSettings = cache(async (userId: string, code: string, value: string | undefined) => {
|
||||
return await prisma.setting.upsert({
|
||||
where: { userId_code: { code, userId } },
|
||||
update: { value },
|
||||
|
||||
Reference in New Issue
Block a user