Skip to content

Commit 8c02e8e

Browse files
committed
Improve imports
1 parent 03ab10c commit 8c02e8e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/services/inboundCall.service.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import client from '../twilioClient'
12
import VoiceResponse from "twilio/lib/twiml/VoiceResponse";
23

3-
import { getConversationByAddressPair } from "../utils/getConversationByAddressPair.util";
4-
5-
import client from '../twilioClient'
6-
import { participantsToDial } from "../utils/participantsToDial.util";
7-
import { listConversationParticipants } from "../utils";
8-
import { generateConferenceName } from "../utils/generateConferenceName.util";
4+
import {
5+
getConversationByAddressPair,
6+
participantsToDial,
7+
listConversationParticipants,
8+
generateConferenceName
9+
} from "../utils/";
910

1011
export const generateTwiml = async (from: string, to: string) => {
1112
let response = new VoiceResponse();
@@ -46,8 +47,6 @@ export const generateTwiml = async (from: string, to: string) => {
4647
dial.conference({
4748
endConferenceOnExit: true
4849
}, conferenceName);
49-
50-
5150
} else {
5251
const callee = dialList[0]
5352
const dial = response.dial({
@@ -56,7 +55,6 @@ export const generateTwiml = async (from: string, to: string) => {
5655

5756
dial.number(callee.address);
5857
}
59-
6058
}
6159

6260
return response;

src/utils/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ export * from "./deleteConversation.util";
44
export * from "./listParticipantConversations.util"
55
export * from "./retryAddParticipant.util"
66
export * from "./listConversationParticipants.util"
7-
export * from "./participantsToDial.util"
7+
export * from "./participantsToDial.util"
8+
export * from "./getConversationByAddressPair.util"
9+
export * from "./generateConferenceName.util"

0 commit comments

Comments
 (0)