From 55047a4313533fc0438c2e6aed37f3e95118fbc2 Mon Sep 17 00:00:00 2001 From: Abhinav-grd Date: Mon, 22 Feb 2021 13:20:06 +0530 Subject: [PATCH] changed + e to , e --- src/services/collectionService.ts | 12 ++++++------ src/services/downloadManager.ts | 4 ++-- src/services/fileService.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/services/collectionService.ts b/src/services/collectionService.ts index 3e9730740..b75812b59 100644 --- a/src/services/collectionService.ts +++ b/src/services/collectionService.ts @@ -107,7 +107,7 @@ const getCollections = async ( ); return await Promise.all(promises); } catch (e) { - console.log('getCollections failed- ' + e); + console.log('getCollections failed- ', e.response); } }; @@ -118,8 +118,8 @@ export const getLocalCollections = async (): Promise => { }; export const getCollectionUpdationTime = async (): Promise => { - return await localForage.getItem(COLLECTION_UPDATION_TIME) ?? 0; -} + return (await localForage.getItem(COLLECTION_UPDATION_TIME)) ?? 0; +}; export const syncCollections = async (token: string, key: string) => { const localCollections = await getLocalCollections(); @@ -268,7 +268,7 @@ const createCollection = async ( ); return response.data.collection; } catch (e) { - console.log('create Collection failed ' + e); + console.log('create Collection failed ', e); } }; @@ -326,7 +326,7 @@ const addToCollection = async (collection: collection, files: file[]) => { { 'X-Auth-Token': token } ); } catch (e) { - console.log('Add to collection Failed ' + e); + console.log('Add to collection Failed ', e); } }; const removeFromCollection = async (collection: collection, files: file[]) => { @@ -349,7 +349,7 @@ const removeFromCollection = async (collection: collection, files: file[]) => { { 'X-Auth-Token': token } ); } catch (e) { - console.log('remove from collection failed ' + e); + console.log('remove from collection failed ', e); } }; diff --git a/src/services/downloadManager.ts b/src/services/downloadManager.ts index 3f475e1bf..2a701efb6 100644 --- a/src/services/downloadManager.ts +++ b/src/services/downloadManager.ts @@ -50,7 +50,7 @@ class DownloadManager { } return await this.thumbnailDownloads.get(file.id); } catch (e) { - console.log('get preview Failed' + e); + console.log('get preview Failed' , e ); } } @@ -72,7 +72,7 @@ class DownloadManager { ); return URL.createObjectURL(new Blob([decrypted])); } catch (e) { - console.log('get file failed ' + e); + console.log('get file failed ' , e ); } })(); this.fileDownloads.set(file.id, download); diff --git a/src/services/fileService.ts b/src/services/fileService.ts index 47c088105..31d88995d 100644 --- a/src/services/fileService.ts +++ b/src/services/fileService.ts @@ -151,7 +151,7 @@ export const getFiles = async ( } while (resp.data.diff.length === limit); return await Promise.all(promises); } catch (e) { - console.log('Get files failed' + e); + console.log('Get files failed' , e ); } };