Added temporary document handling IO-69

This commit is contained in:
Patrick Fic
2021-02-12 11:25:34 -08:00
parent 675c38b19a
commit 77a06014cf
44 changed files with 1018 additions and 30 deletions

View File

@@ -127,12 +127,13 @@ export const uploadToCloudinary = async (
variables: {
docInput: [
{
jobid: jobId,
...(jobId ? { jobid: jobId } : {}),
...(billId ? { billid: billId } : {}),
uploaded_by: uploaded_by,
key: key,
billid: billId,
type: fileType,
extension: extension,
bodyshopid: bodyshop.id,
},
],
},
@@ -163,7 +164,6 @@ export const uploadToCloudinary = async (
};
export function DetermineFileType(filetype) {
console.log("Checking Type", filetype, filetype.startsWith("video"));
if (!filetype) return "auto";
else if (filetype.startsWith("image")) return "image";
else if (filetype.startsWith("video")) return "video";