update user refactor

This commit is contained in:
Alex Holliday committed 2026-01-16 20:29:54 +00:00
1 parent 88bb8ef2d3
commit cb5b8e0673
16 files changed
+293 -80

No files matched your search

@@ -0,0 +1,12 @@
import type { User } from "@/types/index.js";
export interface IUsersRepository {
// create
create(user: Partial<User>, imageFile?: Express.Multer.File | null): Promise<User>;
// fetch
findByEmail(email: string): Promise<User>;
// update
updateById(id: string, patch: Partial<User>, file?: Express.Multer.File | null): Promise<User>;
// delete
// other
findSuperAdmin(): Promise<boolean>;
}