From 3900d33f258436200a58fe2afc24ca17002eef65 Mon Sep 17 00:00:00 2001 From: Saiyan Abhishek <74703491+geeky-abhishek@users.noreply.github.com> Date: Thu, 22 Feb 2024 09:41:02 +0530 Subject: [PATCH] chore: disable debugging logs --- package.json | 2 +- src/services/utils/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index ad26dfe..614685c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-app", - "version": "0.1.52", + "version": "0.1.53", "private": true, "scripts": { "dev": "next dev", diff --git a/src/services/utils/index.js b/src/services/utils/index.js index 544f18d..1cbd5ed 100644 --- a/src/services/utils/index.js +++ b/src/services/utils/index.js @@ -280,9 +280,9 @@ export const storeImages = async (data, disableuserlogs) => { imageRecords.push(data); return await localForage.setItem("imageRecords", imageRecords); } catch (err) { - const user = store?.getState()?.userData?.user; - let uploadedFiles = await uploadMedia([data.images], user) - sendLogs({ meta: `at storeImages, minioNames: ${JSON.stringify(uploadedFiles)}`, gpId: store?.getState().userData?.user?.user?.username, error: err?.message || err?.toString() }, disableuserlogs?.enabled ? disableuserlogs?.value?.split(',')?.includes(user?.user?.username) : true) + // const user = store?.getState()?.userData?.user; + // let uploadedFiles = await uploadMedia([data.images], user) + // sendLogs({ meta: `at storeImages, minioNames: ${JSON.stringify(uploadedFiles)}`, gpId: store?.getState().userData?.user?.user?.username, error: err?.message || err?.toString() }, disableuserlogs?.enabled ? disableuserlogs?.value?.split(',')?.includes(user?.user?.username) : true) throw err; } }