mirror of
https://github.com/LukeHagar/dokploy.git
synced 2025-12-06 12:27:49 +00:00
refactor: update temps
This commit is contained in:
@@ -94,6 +94,10 @@ export default function Home({ IS_CLOUD }: Props) {
|
||||
});
|
||||
// router.push("/dashboard/projects");
|
||||
// }
|
||||
} else {
|
||||
toast.error("Error to sign up", {
|
||||
description: error.message,
|
||||
});
|
||||
}
|
||||
|
||||
console.log(data, error);
|
||||
|
||||
@@ -18,15 +18,16 @@ export const auth = betterAuth({
|
||||
if (ctx.path.startsWith("/sign-up")) {
|
||||
const newSession = ctx.context.newSession;
|
||||
await db
|
||||
.update(schema.user)
|
||||
.update(schema.users_temp)
|
||||
.set({
|
||||
role: "admin",
|
||||
})
|
||||
.where(eq(schema.user.id, newSession?.user?.id || ""));
|
||||
.where(eq(schema.users_temp.id, newSession?.user?.id || ""));
|
||||
}
|
||||
}),
|
||||
},
|
||||
user: {
|
||||
modelName: "users_temp",
|
||||
additionalFields: {},
|
||||
},
|
||||
plugins: [organization()],
|
||||
|
||||
Reference in New Issue
Block a user