fix: add prisma to forwarder error instance

This commit is contained in:
rafiarrafif
2025-05-27 23:37:24 +07:00
parent ab84abf366
commit b52f1202eb
6 changed files with 17 additions and 7 deletions

View File

@ -34,6 +34,6 @@ export const findUserByEmailOrUsernameRepo = async (identifier: string) => {
if (!userData) return false;
return userData;
} catch (error) {
throw new AppError(500, "Database error", error);
throw error;
}
};