Docker build updates

This commit is contained in:
Darren Clarke 2024-05-14 15:31:44 +02:00
parent 3e36aef9c5
commit 67a5b60ad5
34 changed files with 89 additions and 52 deletions

View file

@ -1,9 +1,9 @@
/* eslint-disable camelcase */
import { convert } from "html-to-text";
import { URLSearchParams } from "url";
import { withDb, AppDatabase } from "../../lib/db";
import { withDb, AppDatabase } from "../../lib/db.js";
// import { loadConfig } from "@digiresilience/bridge-config";
import { tagMap } from "../../lib/tag-map";
import { tagMap } from "../../lib/tag-map.js";
const config: any = {};

View file

@ -1,6 +1,6 @@
/* eslint-disable camelcase */
import { URLSearchParams } from "url";
import { withDb, AppDatabase } from "../../lib/db";
import { withDb, AppDatabase } from "../../lib/db.js";
// import { loadConfig } from "@digiresilience/bridge-config";
const config: any = {};

View file

@ -1,4 +1,4 @@
import { db, getWorkerUtils } from "bridge-common";
// import { db, getWorkerUtils } from "bridge-common";
interface ReceiveSignalMessageTaskOptions {
message: any;

View file

@ -1,4 +1,4 @@
import { db, getWorkerUtils } from "bridge-common";
// import { db, getWorkerUtils } from "bridge-common";
interface SendSignalMessageTaskOptions {
message: any;

View file

@ -1,8 +1,8 @@
/* eslint-disable camelcase */
// import logger from "../logger";
// import { IncomingMessagev1 } from "@digiresilience/node-signald/build/main/generated";
import { withDb, AppDatabase } from "../../lib/db";
import workerUtils from "../../lib/utils";
import { withDb, AppDatabase } from "../../lib/db.js";
import workerUtils from "../../lib/utils.js";
type IncomingMessagev1 = any;

View file

@ -1,4 +1,4 @@
import { db, getWorkerUtils } from "bridge-common";
// import { db, getWorkerUtils } from "bridge-common";
interface ReceiveVoiceMessageTaskOptions {
message: any;

View file

@ -1,4 +1,4 @@
import { db, getWorkerUtils } from "bridge-common";
// import { db, getWorkerUtils } from "bridge-common";
interface SendVoiceMessageTaskOptions {
message: any;

View file

@ -1,8 +1,8 @@
import Wreck from "@hapi/wreck";
import { withDb, AppDatabase } from "../../lib/db";
import { twilioClientFor } from "../../lib/common";
import { withDb, AppDatabase } from "../../lib/db.js";
import { twilioClientFor } from "../../lib/common.js";
import { CallInstance } from "twilio/lib/rest/api/v2010/account/call";
import workerUtils from "../../lib/utils";
import workerUtils from "../../lib/utils.js";
interface WebhookPayload {
startTime: string;

View file

@ -1,6 +1,6 @@
import { createHash } from "crypto";
import { withDb, AppDatabase } from "../../lib/db";
import { convert } from "../../lib/media-convert";
import { withDb, AppDatabase } from "../../lib/db.js";
import { convert } from "../../lib/media-convert.js";
interface VoiceLineAudioUpdateTaskOptions {
voiceLineId: string;

View file

@ -1,6 +1,6 @@
import Twilio from "twilio";
// import config from "@digiresilience/bridge-config";
import { withDb, AppDatabase } from "../../lib/db";
import { withDb, AppDatabase } from "../../lib/db.js";
const config: any = {};

View file

@ -1,6 +1,6 @@
import Twilio from "twilio";
// import config from "@digiresilience/bridge-config";
import { withDb, AppDatabase } from "../../lib/db";
import { withDb, AppDatabase } from "../../lib/db.js";
const config: any = {};

View file

@ -1,4 +1,4 @@
import { db, getWorkerUtils } from "bridge-common";
// import { db, getWorkerUtils } from "bridge-common";
interface ReceiveWhatsappMessageTaskOptions {
message: any;

View file

@ -1,4 +1,4 @@
import { db, getWorkerUtils } from "bridge-common";
// import { db, getWorkerUtils } from "bridge-common";
interface SendWhatsappMessageTaskOptions {
message: any;