Browse Source

fix - error query var char to into int issue resolved

pull/1/head
khanshanawaz10 1 year ago
parent
commit
eb72bbb30d
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      controller/Errorlog/index.js
  2. +1
    -1
      controller/getTransactionById/index.js

+ 1
- 1
controller/Errorlog/index.js View File

@ -4,7 +4,7 @@ const { getCurrentDateTime } = require("../helper");
function errorLogStatus(error = null, funName = null) { function errorLogStatus(error = null, funName = null) {
let query = `INSERT INTO providentialadvisory.dbo.User_log let query = `INSERT INTO providentialadvisory.dbo.User_log
(client_code, request, status, response, created_date, created_by, api_name, Open_Close_Status, IPAddress, DeviceId, [Source], Header) (client_code, request, status, response, created_date, created_by, api_name, Open_Close_Status, IPAddress, DeviceId, [Source], Header)
VALUES('', '${(error).toString()}', ${0}, '', '${getCurrentDateTime()}', '', '${funName}', ${0}, '', '', '', '')`;
VALUES('', '${error}','', '', '${getCurrentDateTime()}', '', '${funName}', '', '', '', '', '')`;
return db.sequelize.query(query, { type: db.sequelize.QueryTypes.INSERT }); return db.sequelize.query(query, { type: db.sequelize.QueryTypes.INSERT });
} }


+ 1
- 1
controller/getTransactionById/index.js View File

@ -69,7 +69,7 @@ const getTransactionById = (checkInvestorId, checkRequestId) => {
}, 10); }, 10);
} }
}); });
} catch {
} catch (err) {
errorLogStatus(err, "nodeJs_liquiloan_getTransactionById") errorLogStatus(err, "nodeJs_liquiloan_getTransactionById")
} }
} }


Loading…
Cancel
Save

Powered by TurnKey Linux.