fixing in user and authentication

This commit is contained in:
rafiarrafif
2025-05-11 01:41:05 +07:00
parent 954d40df3b
commit 307c5e2d68
15 changed files with 122 additions and 96 deletions

View File

@ -1,12 +1,8 @@
import { userModel } from "../user.model";
import { getAllUserRepo } from "../repositories/getAllUser.repository";
export const getAllUsersService = async () => {
try {
const allUser = await userModel.findMany({
where: {
deletedAt: null,
},
});
const allUser = await getAllUserRepo();
return allUser;
} catch (error) {
throw error;