mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
✨ In user registration add standard whatsapp field
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import Queue from "../models/Queue";
|
||||
import User from "../models/User";
|
||||
import Whatsapp from "../models/Whatsapp";
|
||||
|
||||
interface SerializedUser {
|
||||
id: number;
|
||||
@@ -7,6 +8,7 @@ interface SerializedUser {
|
||||
email: string;
|
||||
profile: string;
|
||||
queues: Queue[];
|
||||
whatsapp: Whatsapp;
|
||||
}
|
||||
|
||||
export const SerializeUser = (user: User): SerializedUser => {
|
||||
@@ -15,6 +17,7 @@ export const SerializeUser = (user: User): SerializedUser => {
|
||||
name: user.name,
|
||||
email: user.email,
|
||||
profile: user.profile,
|
||||
queues: user.queues
|
||||
queues: user.queues,
|
||||
whatsapp: user.whatsapp
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user