mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +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";
|
||||
|
||||
const ShowContactService = async (id: string | number): Promise<Contact> => {
|
||||
const user = await Contact.findByPk(id);
|
||||
const user = await Contact.findByPk(id, { include: ["extraInfo"] });
|
||||
|
||||
if (!user) {
|
||||
throw new AppError("No contact found with this ID.", 404);
|
||||
|
||||
Reference in New Issue
Block a user