Update env. vars and remove logs.
This commit is contained in:
@@ -57,7 +57,7 @@ export const uploadToCloudinary = async (
|
||||
tagsArray ? tagsArray.map((tag) => `${tag},`) : ""
|
||||
}`;
|
||||
// let eager = process.env.REACT_APP_CLOUDINARY_THUMB_TRANSFORMATIONS;
|
||||
console.log("fileType", fileType);
|
||||
|
||||
const upload_preset = fileType.startsWith("video")
|
||||
? "incoming_upload_video"
|
||||
: "incoming_upload";
|
||||
@@ -134,12 +134,9 @@ export const uploadToCloudinary = async (
|
||||
if (onError) onError(cloudinaryUploadResponse.statusText);
|
||||
return { success: false, error: cloudinaryUploadResponse.statusText };
|
||||
}
|
||||
console.log("mediaId", mediaId);
|
||||
|
||||
const imageData = await MediaLibrary.getAssetInfoAsync(mediaId);
|
||||
console.log(
|
||||
"🚀 ~ file: document-upload.utility.js ~ line 140 ~ imageData",
|
||||
imageData.creationTime
|
||||
);
|
||||
|
||||
//Insert the document with the matching key.
|
||||
const documentInsert = await client.mutate({
|
||||
mutation: INSERT_NEW_DOCUMENT,
|
||||
|
||||
Reference in New Issue
Block a user