mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-21 05:09:18 +00:00
✨ In user registration add standard whatsapp field
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Sequelize, Op } from "sequelize";
|
||||
import Queue from "../../models/Queue";
|
||||
import User from "../../models/User";
|
||||
import Whatsapp from "../../models/Whatsapp";
|
||||
|
||||
interface Request {
|
||||
searchParam?: string;
|
||||
@@ -39,7 +40,8 @@ const ListUsersService = async ({
|
||||
offset,
|
||||
order: [["createdAt", "DESC"]],
|
||||
include: [
|
||||
{ model: Queue, as: "queues", attributes: ["id", "name", "color"] }
|
||||
{ model: Queue, as: "queues", attributes: ["id", "name", "color"] },
|
||||
{ model: Whatsapp, as: "whatsapp", attributes: ["id", "name"] },
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user