From 7fabe391745683514f281989f83f03e82d60c552 Mon Sep 17 00:00:00 2001 From: AbdBarho Date: Sun, 15 Jan 2023 10:07:02 +0100 Subject: [PATCH] Fix missing display_name for debug users --- website/src/pages/api/auth/[...nextauth].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/pages/api/auth/[...nextauth].ts b/website/src/pages/api/auth/[...nextauth].ts index 254e4f9d..58b4d8dd 100644 --- a/website/src/pages/api/auth/[...nextauth].ts +++ b/website/src/pages/api/auth/[...nextauth].ts @@ -50,7 +50,7 @@ if (boolean(process.env.DEBUG_LOGIN) || process.env.NODE_ENV === "development") where: { id: user.id, }, - update: {}, + update: user, create: user, }); return user;