fix signature, add tests
This commit is contained in:
1 parent
d53785b768
commit
c961f5292d
2 files changed
+23
-2
No files matched your search
@@ -24,7 +24,7 @@ export interface IUserService {
|
||||
createUser(userData: Partial<User>, teamId: string, actorRoles: UserRole[], file: Express.Multer.File | null): Promise<User>;
|
||||
loginUser(email: string, password: string): Promise<{ user: User; token: string }>;
|
||||
editUser(
|
||||
updates: Partial<User & { newPassword?: string }>,
|
||||
updates: Partial<User & { newPassword?: string; deleteProfileImage?: boolean }>,
|
||||
file: Express.Multer.File | null,
|
||||
currentUserId: string,
|
||||
currentUserEmail: string
|
||||
@@ -242,7 +242,7 @@ export class UserService implements IUserService {
|
||||
};
|
||||
|
||||
editUser = async (
|
||||
updates: Partial<User & { newPassword?: string }>,
|
||||
updates: Partial<User & { newPassword?: string; deleteProfileImage?: boolean }>,
|
||||
file: Express.Multer.File | null,
|
||||
currentUserId: string,
|
||||
currentUserEmail: string
|
||||
|
||||
Reference in new issue
Block a user