mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-21 05:09:18 +00:00
change service names
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import Contact from "../../models/Contact";
|
||||
import AppError from "../../errors/AppError";
|
||||
|
||||
const ShowContactService = async (id: string): Promise<Contact> => {
|
||||
const FindContactService = async (id: string): Promise<Contact> => {
|
||||
const user = await Contact.findOne({
|
||||
where: { id },
|
||||
attributes: ["id", "name", "number", "email"]
|
||||
@@ -14,4 +14,4 @@ const ShowContactService = async (id: string): Promise<Contact> => {
|
||||
return user;
|
||||
};
|
||||
|
||||
export default ShowContactService;
|
||||
export default FindContactService;
|
||||
@@ -1,7 +1,7 @@
|
||||
import User from "../../models/User";
|
||||
import AppError from "../../errors/AppError";
|
||||
|
||||
const ShowUserService = async (id: string): Promise<User | undefined> => {
|
||||
const FindUserService = async (id: string): Promise<User | undefined> => {
|
||||
const user = await User.findOne({
|
||||
where: { id },
|
||||
attributes: ["name", "id", "email", "profile"]
|
||||
@@ -14,4 +14,4 @@ const ShowUserService = async (id: string): Promise<User | undefined> => {
|
||||
return user;
|
||||
};
|
||||
|
||||
export default ShowUserService;
|
||||
export default FindUserService;
|
||||
Reference in New Issue
Block a user