mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 12:49:32 +00:00
change 'default' to 'isDefault' whatsapp field on frontend
This commit is contained in:
@@ -1,13 +1,9 @@
|
||||
import Whatsapp from "../../models/Whatsapp";
|
||||
|
||||
interface Response {
|
||||
whatsapps: Whatsapp[];
|
||||
}
|
||||
|
||||
const ListWhatsAppsService = async (): Promise<Response> => {
|
||||
const ListWhatsAppsService = async (): Promise<Whatsapp[]> => {
|
||||
const whatsapps = await Whatsapp.findAll();
|
||||
|
||||
return { whatsapps };
|
||||
return whatsapps;
|
||||
};
|
||||
|
||||
export default ListWhatsAppsService;
|
||||
|
||||
Reference in New Issue
Block a user