Skip to content

Commit

Permalink
fix: remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeen committed Jan 31, 2022
1 parent 3d2bd5b commit b8377e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/utils/xls.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const encodeValue = (value, hex = false) => {
if (typeof value === 'object') {
value = '';
}

if (hex) {
try {
return Buffer.from(value).toString('hex');
Expand Down Expand Up @@ -84,9 +84,11 @@ export const createXlsFromSequelizeResults = (
initialReduceValue[model.name] = {
name: model.name + 's',
data: [
columnsInMainSheet.filter((colName) => {
return !(excludeOrgUid && colName === 'orgUid');
}).map(colName => colName === 'issuance' ? 'issuanceId' : colName), // todo make this generic
columnsInMainSheet
.filter((colName) => {
return !(excludeOrgUid && colName === 'orgUid');
})
.map((colName) => (colName === 'issuance' ? 'issuanceId' : colName)), // todo make this generic
],
};

Expand Down Expand Up @@ -359,8 +361,6 @@ export const updateTableWithData = async (tableData, model) => {
}

if (!validation.error) {
console.log(JSON.stringify(row))
console.log("WEFwefs")
await Staging.upsert({
uuid: data[model.primaryKeyAttributes[0]],
action: exists ? 'UPDATE' : 'INSERT',
Expand Down

0 comments on commit b8377e7

Please sign in to comment.