Compare commits
1 Commits
d44aae0eff
...
develop
Author | SHA1 | Date | |
---|---|---|---|
9a61396db6 |
@ -120,7 +120,7 @@ async function main() {
|
|||||||
|
|
||||||
["SIGINT", "SIGTERM", "SIGQUIT"].forEach((sig) => {
|
["SIGINT", "SIGTERM", "SIGQUIT"].forEach((sig) => {
|
||||||
process.on(sig, async () => {
|
process.on(sig, async () => {
|
||||||
logger.info(`\nCaught ${sig}, shutting down...`);
|
logger.info(`Caught ${sig}, shutting down...`);
|
||||||
const results = await Promise.allSettled(
|
const results = await Promise.allSettled(
|
||||||
intervals.map((interval) => interval.clear())
|
intervals.map((interval) => interval.clear())
|
||||||
);
|
);
|
||||||
|
@ -340,7 +340,7 @@ export function ticketize(
|
|||||||
* @param firstRun whether this is the first run
|
* @param firstRun whether this is the first run
|
||||||
*/
|
*/
|
||||||
async function fetchAndStoreNewVoicemails(firstRun = false) {
|
async function fetchAndStoreNewVoicemails(firstRun = false) {
|
||||||
logger.info("Checking for new voicemails");
|
logger.verbose("Checking for new voicemails");
|
||||||
const extensions = await getValidRCExtensions();
|
const extensions = await getValidRCExtensions();
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
extensions.map((extension) =>
|
extensions.map((extension) =>
|
||||||
|
Reference in New Issue
Block a user