fix: theme

Deskripsi:
- realtime saat ada perubahan theme

No Issues
This commit is contained in:
amel
2024-11-07 15:54:39 +08:00
parent 5aec05bf06
commit 7f394311d7
5 changed files with 32 additions and 21 deletions

View File

@@ -170,7 +170,7 @@ export async function POST(request: Request, context: { params: { id: string } }
// create log user
const log = await createLogUser({ act: 'DELETE', desc: 'User mengganti tema', table: 'colorTheme', data: id })
return NextResponse.json({ success: true, message: "Tema berhasil diganti", data: dataTheme }, { status: 200 });
return NextResponse.json({ success: true, message: "Tema berhasil diganti", data: { village: user.idVillage, user: user.id }, theme: dataTheme }, { status: 200 });
} catch (error) {
console.error(error);