mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +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;
|
||||
Reference in New Issue
Block a user