mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +00:00
fix: no extra info in contacts
This commit is contained in:
@@ -2,7 +2,7 @@ import Contact from "../../models/Contact";
|
|||||||
import AppError from "../../errors/AppError";
|
import AppError from "../../errors/AppError";
|
||||||
|
|
||||||
const ShowContactService = async (id: string | number): Promise<Contact> => {
|
const ShowContactService = async (id: string | number): Promise<Contact> => {
|
||||||
const user = await Contact.findByPk(id);
|
const user = await Contact.findByPk(id, { include: ["extraInfo"] });
|
||||||
|
|
||||||
if (!user) {
|
if (!user) {
|
||||||
throw new AppError("No contact found with this ID.", 404);
|
throw new AppError("No contact found with this ID.", 404);
|
||||||
|
|||||||
Reference in New Issue
Block a user