fixes, theming, branding
This commit is contained in:
@@ -3,6 +3,7 @@ import { db } from '@/lib/db';
|
||||
import { settings } from '@/lib/db/schema';
|
||||
import { eq } from 'drizzle-orm';
|
||||
import { getSession } from '@/lib/session';
|
||||
import { invalidateAppConfigCache } from '@/lib/app-config';
|
||||
|
||||
export async function GET(request: NextRequest) {
|
||||
try {
|
||||
@@ -70,6 +71,9 @@ export async function PUT(request: NextRequest) {
|
||||
|
||||
await Promise.all(updatePromises);
|
||||
|
||||
// Invalidate app config cache since settings changed
|
||||
invalidateAppConfigCache();
|
||||
|
||||
return NextResponse.json({ message: 'Settings updated successfully' });
|
||||
} catch (error) {
|
||||
console.error('Error updating settings:', error);
|
||||
|
||||
Reference in New Issue
Block a user