Bot commited on
Commit
99774e8
·
1 Parent(s): 1878c5c

Fix typescript error in preferences route

Browse files
src/app/api/user/preferences/route.ts CHANGED
@@ -30,7 +30,7 @@ export async function PUT(request: Request) {
30
  const preferences = UserPreferencesZodSchema.parse(json);
31
  const updatedUser = await userRepository.updatePreferences(
32
  session.user.id,
33
- preferences,
34
  );
35
  return NextResponse.json({
36
  success: true,
 
30
  const preferences = UserPreferencesZodSchema.parse(json);
31
  const updatedUser = await userRepository.updatePreferences(
32
  session.user.id,
33
+ preferences as any,
34
  );
35
  return NextResponse.json({
36
  success: true,