Covert to ESM and get it functional locally

This commit is contained in:
Allan Carr
2024-08-27 13:45:12 -07:00
parent e793402a79
commit 36ada6fd1f
19 changed files with 980 additions and 1046 deletions

View File

@@ -2,10 +2,10 @@ import { Request, Response } from "express";
import fs from "fs-extra";
import JSZip from "jszip";
import path from "path";
import { logger } from "../server";
import ListableChecker from "../util/listableChecker";
import { PathToRoBillsFolder, PathToRoFolder } from "../util/pathGenerators";
import { BillsRelativeFilePath, JobRelativeFilePath } from "../util/serverInit";
import { logger } from "../server.js";
import ListableChecker from "../util/listableChecker.js";
import { PathToRoBillsFolder, PathToRoFolder } from "../util/pathGenerators.js";
import { BillsRelativeFilePath, JobRelativeFilePath } from "../util/serverInit.js";
//param: files: string[] | array of filenames.
export async function jobsDownloadMedia(req: Request, res: Response) {