mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-09-11 11:50:17 +08:00
use useSWR data instead calling setState
This commit is contained in:
@@ -44,6 +44,7 @@ if (boolean(process.env.DEBUG_LOGIN) || process.env.NODE_ENV === "development")
|
||||
const user = {
|
||||
id: credentials.username,
|
||||
name: credentials.username,
|
||||
role: "admin",
|
||||
};
|
||||
// save the user to the database
|
||||
await prisma.user.upsert({
|
||||
|
||||
Reference in New Issue
Block a user