move queues
This commit is contained in:
parent
6cbc7468fb
commit
23e7616416
@ -1,7 +1,7 @@
|
||||
import { Queue } from "quirrel/blitz";
|
||||
import twilio from "twilio";
|
||||
|
||||
import db from "../../../db";
|
||||
import db from "../../../../db";
|
||||
import insertMessagesQueue from "./insert-messages";
|
||||
|
||||
type Payload = {
|
@ -1,8 +1,8 @@
|
||||
import { Queue } from "quirrel/blitz";
|
||||
import type { MessageInstance } from "twilio/lib/rest/api/v2010/account/message";
|
||||
|
||||
import db, { MessageStatus, Direction, Message } from "../../../db";
|
||||
import { encrypt } from "../../../db/_encryption";
|
||||
import db, { MessageStatus, Direction, Message } from "../../../../db";
|
||||
import { encrypt } from "../../../../db/_encryption";
|
||||
|
||||
type Payload = {
|
||||
customerId: string;
|
@ -1,7 +1,7 @@
|
||||
import { Queue } from "quirrel/blitz";
|
||||
import twilio from "twilio";
|
||||
|
||||
import db from "../../../db";
|
||||
import db from "../../../../db";
|
||||
|
||||
type Payload = {
|
||||
id: string;
|
@ -1,7 +1,7 @@
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faPaperPlane } from "@fortawesome/pro-regular-svg-icons";
|
||||
import { useForm } from "react-hook-form";
|
||||
import { useMutation, useQuery, useRouter } from "blitz";
|
||||
import { useMutation, useQuery } from "blitz";
|
||||
|
||||
import sendMessage from "../mutations/send-message";
|
||||
import { Direction, Message, MessageStatus } from "../../../db";
|
||||
|
@ -6,7 +6,7 @@ import db, { Direction, MessageStatus } from "../../../db";
|
||||
import getCurrentCustomer from "../../customers/queries/get-current-customer";
|
||||
import getCustomerPhoneNumber from "../../phone-numbers/queries/get-customer-phone-number";
|
||||
import { encrypt } from "../../../db/_encryption";
|
||||
import sendMessageQueue from "../../api/queue/send-message";
|
||||
import sendMessageQueue from "../../messages/api/queue/send-message";
|
||||
import appLogger from "../../../integrations/logger";
|
||||
|
||||
const logger = appLogger.child({ mutation: "send-message" });
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Queue } from "quirrel/blitz";
|
||||
import twilio from "twilio";
|
||||
|
||||
import db from "../../../db";
|
||||
import db from "../../../../db";
|
||||
|
||||
type Payload = {
|
||||
customerId: string;
|
@ -4,9 +4,9 @@ import twilio from "twilio";
|
||||
|
||||
import db from "../../../db";
|
||||
import getCurrentCustomer from "../../customers/queries/get-current-customer";
|
||||
import fetchMessagesQueue from "../../api/queue/fetch-messages";
|
||||
import fetchCallsQueue from "../../api/queue/fetch-calls";
|
||||
import setTwilioWebhooks from "../../api/queue/set-twilio-webhooks";
|
||||
import fetchMessagesQueue from "../../messages/api/queue/fetch-messages";
|
||||
import fetchCallsQueue from "../../phone-calls/api/queue/fetch-calls";
|
||||
import setTwilioWebhooks from "../api/queue/set-twilio-webhooks";
|
||||
|
||||
const Body = z.object({
|
||||
phoneNumberSid: z.string(),
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Queue } from "quirrel/blitz";
|
||||
import twilio from "twilio";
|
||||
|
||||
import db from "../../../db";
|
||||
import db from "../../../../db";
|
||||
import insertCallsQueue from "./insert-calls";
|
||||
|
||||
type Payload = {
|
@ -1,7 +1,7 @@
|
||||
import { Queue } from "quirrel/blitz";
|
||||
import type { CallInstance } from "twilio/lib/rest/api/v2010/account/call";
|
||||
|
||||
import db, { Direction, CallStatus } from "../../../db";
|
||||
import db, { Direction, CallStatus } from "../../../../db";
|
||||
|
||||
type Payload = {
|
||||
customerId: string;
|
Loading…
Reference in New Issue
Block a user