linter fixes

This commit is contained in:
2025-05-27 15:07:33 +03:00
parent b30796ae4b
commit 85349bf961
16 changed files with 991 additions and 1295 deletions

View File

@@ -34,6 +34,7 @@ export async function POST(req: NextRequest) {
const result = await response.json()
return new Response(JSON.stringify(result), { status: 200 })
} catch (error) {
console.error('POST /api/account/create-route error:', error)
return new Response(JSON.stringify({ error: 'Internal Server Error' }), {
status: 500,
})

View File

@@ -39,6 +39,7 @@ export async function PATCH(req: NextRequest) {
const result = await response.json()
return new Response(JSON.stringify(result), { status: 200 })
} catch (error) {
console.error('PATCH /api/account/main error:', error)
return new Response(JSON.stringify({ error: 'Internal Server Error' }), {
status: 500,
})

View File

@@ -2,7 +2,7 @@ import { NextRequest } from 'next/server'
import { getServerSession } from 'next-auth'
import { authOptions } from '@/app/api/auth/[...nextauth]/route'
export async function GET(req: NextRequest) {
export async function GET() {
try {
const response = await fetch(`${process.env.NEXT_PUBLIC_API_URL}/plans/`, {
method: 'GET',

View File

@@ -1,8 +1,7 @@
import { NextRequest } from 'next/server'
import { getServerSession } from 'next-auth'
import { authOptions } from '@/app/api/auth/[...nextauth]/route'
export async function GET(req: NextRequest) {
export async function GET() {
try {
const session = await getServerSession(authOptions)
if (!session) {

View File

@@ -1,8 +1,7 @@
import { NextRequest } from 'next/server'
import { getServerSession } from 'next-auth'
import { authOptions } from '@/app/api/auth/[...nextauth]/route'
export async function GET(req: NextRequest) {
export async function GET() {
try {
const session = await getServerSession(authOptions)
if (!session) {