changed to Daphnis

This commit is contained in:
polaris
2024-06-29 02:37:50 -04:00
parent 60824969ec
commit d465e6eb76
57 changed files with 71 additions and 66 deletions

View File

@ -1,7 +1,7 @@
"use server";
import { getAuth } from "@/auth/queries/getauth";
import { lachesis } from "@/lib/prisma";
import { daphnis } from "@/lib/prisma";
import { Argon2id } from "oslo/password";
export const InApplicationPasswordReset = async (
@ -22,7 +22,7 @@ export const InApplicationPasswordReset = async (
try {
// Fetch user from database
const existingUser = await lachesis.user.findUnique({
const existingUser = await daphnis.user.findUnique({
where: {
id: user.id,
},
@ -46,7 +46,7 @@ export const InApplicationPasswordReset = async (
const hashedPassword = await new Argon2id().hash(newPassword);
// Update user's password
await lachesis.user.update({
await daphnis.user.update({
where: {
id: user.id,
},