feat: button to hide welcome msg

This commit is contained in:
Vasily Zubarev
2025-03-16 22:24:02 +01:00
parent c563a41ed2
commit 7ff5baf837
5 changed files with 22 additions and 6 deletions

View File

@@ -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 },