From c2e9048cb0375ea93c592ee27b86a930561169bd Mon Sep 17 00:00:00 2001 From: adriano Date: Mon, 17 Apr 2023 11:03:50 -0300 Subject: [PATCH] Ajustes de arquivos --- backend/src/controllers/WhatsAppSessionController.ts | 2 +- backend/src/helpers/GetWbotMessage.ts | 2 +- backend/src/helpers/{EndPointQuery.ts => old_EndPointQuery.ts} | 0 backend/src/server.ts | 2 +- backend/src/services/WbotServices/CheckIsValidContact.ts | 2 +- backend/src/services/WbotServices/DeleteWhatsAppMessage.ts | 2 +- backend/src/services/WbotServices/GetProfilePicUrl.ts | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename backend/src/helpers/{EndPointQuery.ts => old_EndPointQuery.ts} (100%) diff --git a/backend/src/controllers/WhatsAppSessionController.ts b/backend/src/controllers/WhatsAppSessionController.ts index 52ed16b..4aac197 100644 --- a/backend/src/controllers/WhatsAppSessionController.ts +++ b/backend/src/controllers/WhatsAppSessionController.ts @@ -16,7 +16,7 @@ import { setRestoreControll, getRestoreControll, shifRestoreControll } from "../ import autoRestore from "../helpers/AutoRestore"; import axios from "axios"; import Whatsapp from "../models/Whatsapp"; -import endPointQuery from "../helpers/EndPointQuery"; +import endPointQuery from "../helpers/old_EndPointQuery"; // let lstRestore: any = [] diff --git a/backend/src/helpers/GetWbotMessage.ts b/backend/src/helpers/GetWbotMessage.ts index ed0aa5f..423c258 100644 --- a/backend/src/helpers/GetWbotMessage.ts +++ b/backend/src/helpers/GetWbotMessage.ts @@ -2,7 +2,7 @@ import { Message as WbotMessage } from "whatsapp-web.js"; import Ticket from "../models/Ticket"; import GetTicketWbot from "./GetTicketWbot"; import AppError from "../errors/AppError"; -import endPointQuery from "./EndPointQuery"; +import endPointQuery from "./old_EndPointQuery"; import { getWbot } from "../libs/wbot"; export const GetWbotMessage = async ( diff --git a/backend/src/helpers/EndPointQuery.ts b/backend/src/helpers/old_EndPointQuery.ts similarity index 100% rename from backend/src/helpers/EndPointQuery.ts rename to backend/src/helpers/old_EndPointQuery.ts diff --git a/backend/src/server.ts b/backend/src/server.ts index 92d5f64..28634ae 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -5,7 +5,7 @@ import { logger } from "./utils/logger"; import { StartAllWhatsAppsSessions } from "./services/WbotServices/StartAllWhatsAppsSessions"; import User from "./models/User"; import Whatsapp from "./models/Whatsapp"; -import endPointQuery from "./helpers/EndPointQuery"; +import endPointQuery from "./helpers/old_EndPointQuery"; import { cacheSize, flushCache, loadTicketsCache } from "./helpers/TicketCache"; import { loadContactsCache } from "./helpers/ContactsCache"; diff --git a/backend/src/services/WbotServices/CheckIsValidContact.ts b/backend/src/services/WbotServices/CheckIsValidContact.ts index e26e525..617e53a 100644 --- a/backend/src/services/WbotServices/CheckIsValidContact.ts +++ b/backend/src/services/WbotServices/CheckIsValidContact.ts @@ -1,5 +1,5 @@ import AppError from "../../errors/AppError"; -import endPointQuery from "../../helpers/EndPointQuery"; +import endPointQuery from "../../helpers/old_EndPointQuery"; import GetDefaultWhatsApp from "../../helpers/GetDefaultWhatsApp"; import { getWbot } from "../../libs/wbot"; diff --git a/backend/src/services/WbotServices/DeleteWhatsAppMessage.ts b/backend/src/services/WbotServices/DeleteWhatsAppMessage.ts index c3785e5..6a25734 100644 --- a/backend/src/services/WbotServices/DeleteWhatsAppMessage.ts +++ b/backend/src/services/WbotServices/DeleteWhatsAppMessage.ts @@ -1,5 +1,5 @@ import AppError from "../../errors/AppError"; -import endPointQuery from "../../helpers/EndPointQuery"; +import endPointQuery from "../../helpers/old_EndPointQuery"; import GetWbotMessage from "../../helpers/GetWbotMessage"; import { getWbot } from "../../libs/wbot"; import Message from "../../models/Message"; diff --git a/backend/src/services/WbotServices/GetProfilePicUrl.ts b/backend/src/services/WbotServices/GetProfilePicUrl.ts index 561e79f..175d8e4 100644 --- a/backend/src/services/WbotServices/GetProfilePicUrl.ts +++ b/backend/src/services/WbotServices/GetProfilePicUrl.ts @@ -1,4 +1,4 @@ -import endPointQuery from "../../helpers/EndPointQuery"; +import endPointQuery from "../../helpers/old_EndPointQuery"; import GetDefaultWhatsApp from "../../helpers/GetDefaultWhatsApp"; import { getWbot } from "../../libs/wbot";