mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 13:25:18 +00:00
feat: button to hide welcome msg
This commit is contained in:
@@ -11,7 +11,8 @@ export const getSettings = cache(async (): Promise<SettingsMap> => {
|
||||
}, {} as SettingsMap)
|
||||
})
|
||||
|
||||
export const updateSettings = cache(async (code: string, value: string) => {
|
||||
export const updateSettings = cache(async (code: string, value?: any) => {
|
||||
console.log("updateSettings", code, value)
|
||||
return await prisma.setting.upsert({
|
||||
where: { code },
|
||||
update: { value },
|
||||
|
||||
Reference in New Issue
Block a user