Skip to content

Commit

Permalink
Merge pull request #134 from Samagra-Anamaya/dev
Browse files Browse the repository at this point in the history
chore: disable debugging logs
  • Loading branch information
geeky-abhishek authored Feb 22, 2024
2 parents dfa00a2 + 3900d33 commit a9aa9fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "my-app",
"version": "0.1.52",
"version": "0.1.53",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
6 changes: 3 additions & 3 deletions src/services/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit a9aa9fd

Please sign in to comment.