TP-22332 |removed logs | Aman Singh

This commit is contained in:
aman.singh
2024-04-29 18:08:48 +05:30
parent b562309dc2
commit feb630bbe4
4 changed files with 0 additions and 8 deletions

View File

@@ -57,7 +57,6 @@ getAsyncStorageItem(LocalStorageKeys.IMAGE_FILES, true)
const FileDBSideEffects = () => {
console.log('filesStore', filesStore);
setAsyncStorageItem(LocalStorageKeys.IMAGE_FILES, filesStore);
}

View File

@@ -39,7 +39,6 @@ export const getPreSignedUrl = (filePath: string, type: TYPE = 'IMAGES') => {
};
export const uploadFileTos3 = async (object: any, filePath: string, type:TYPE) => {
console.log('object presigned url', object, filePath, filesStore[filePath]);
if (!object.preSignedUrl) return;
try {
@@ -59,11 +58,9 @@ export const uploadFileTos3 = async (object: any, filePath: string, type:TYPE) =
},
});
console.log('httpResult', await response);
const httpResult = await response.promise;
console.log('httpResult', httpResult);
if (httpResult?.statusCode === 200) {
addClickstreamEvent(CLICKSTREAM_EVENT_NAMES.FA_ZIP_UPLOADED, {type});

View File

@@ -29,7 +29,6 @@ export const imageSyncService = async () => {
processFilesInTimeRange(+startTime, endTime)
.then((files) => {
console.log(files, "FILES form android bridge")
if (files.length > 0) {
FileDB.addFiles(files);
addClickstreamEvent(CLICKSTREAM_EVENT_NAMES.FA_IMAGES_CAPTURED, files);
@@ -37,7 +36,6 @@ export const imageSyncService = async () => {
setAsyncStorageItem(LocalStorageKeys.IMAGE_SYNC_TIME, endTime.toString());
}).catch((error) => {
console.log(error, "ERROR FILES");
logError(error, 'Error in image sync service');
});
};
@@ -62,7 +60,6 @@ export const prepareImagesForUpload = async () => {
filesToUpLoad.sort((a, b) => a.createdAt - b.createdAt);
zipFilesForServer(filesToUpLoad)
.then((zippedFile) => {
console.log(zippedFile, "ZIPPED FILE")
const file = { ...zippedFile, startOffset: filesToUpLoad[0].createdAt, endOffset: filesToUpLoad[filesToUpLoad.length - 1].createdAt, type: 'IMAGES' }
FileDB.unlinkFile(filesToUpLoad);
FileDB.addFiles(file);

View File

@@ -45,7 +45,6 @@ export const prepareVideosForUpload = async () => {
addClickstreamEvent(CLICKSTREAM_EVENT_NAMES.FA_ZIP_FILE_CREATED, zippedFile);
})
.catch((error) => {
console.log(error, "error")
addClickstreamEvent(CLICKSTREAM_EVENT_NAMES.FA_ZIP_FILE_CREATE_ERROR);
logError(error, 'Error zipping files');
});