implemented initial eslintFixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { AuthOptions, getServerSession as getNextAuthServerSession } from "next-auth";
|
||||
import { PrismaAdapter } from "@next-auth/prisma-adapter";
|
||||
import Credentials from "next-auth/providers/credentials";
|
||||
import { DiscordAccount, prisma, User } from "@repo/db";
|
||||
import { prisma } from "@repo/db";
|
||||
import bcrypt from "bcryptjs";
|
||||
import oldUser from "./var.User.json";
|
||||
import { createNewUserFromOld, OldUser } from "../../../../types/oldUser";
|
||||
@@ -70,7 +70,7 @@ export const options: AuthOptions = {
|
||||
},
|
||||
},
|
||||
},
|
||||
adapter: PrismaAdapter(prisma as any),
|
||||
adapter: PrismaAdapter(prisma),
|
||||
callbacks: {
|
||||
jwt: async ({ token, user }) => {
|
||||
if (user && "firstname" in user) {
|
||||
@@ -88,6 +88,7 @@ export const options: AuthOptions = {
|
||||
},
|
||||
});
|
||||
if (!dbUser) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
return null as any;
|
||||
}
|
||||
return {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { prisma } from "@repo/db";
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
export async function GET(request: Request): Promise<NextResponse> {
|
||||
export async function GET(): Promise<NextResponse> {
|
||||
try {
|
||||
const config = await prisma.config.findFirst({
|
||||
orderBy: {
|
||||
|
||||
Reference in New Issue
Block a user