mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
chore: added users service unit tests
This commit is contained in:
@@ -3,7 +3,7 @@ import AppError from "../../errors/AppError";
|
||||
import Ticket from "../../models/Ticket";
|
||||
import UpdateDeletedUserOpenTicketsStatus from "../../helpers/UpdateDeletedUserOpenTicketsStatus";
|
||||
|
||||
const DeleteUserService = async (id: string): Promise<void> => {
|
||||
const DeleteUserService = async (id: string | number): Promise<void> => {
|
||||
const user = await User.findOne({
|
||||
where: { id }
|
||||
});
|
||||
|
||||
@@ -3,7 +3,7 @@ import User from "../../models/User";
|
||||
|
||||
interface Request {
|
||||
searchParam?: string;
|
||||
pageNumber?: string;
|
||||
pageNumber?: string | number;
|
||||
}
|
||||
|
||||
interface Response {
|
||||
|
||||
@@ -12,7 +12,7 @@ interface UserData {
|
||||
|
||||
interface Request {
|
||||
userData: UserData;
|
||||
userId: string;
|
||||
userId: string | number;
|
||||
}
|
||||
|
||||
interface Response {
|
||||
|
||||
Reference in New Issue
Block a user