Skip to content

Commit

Permalink
Merge pull request #4 from skkuse/feature/hsm
Browse files Browse the repository at this point in the history
fixed:inserting data to tb_cabon
  • Loading branch information
Hans-0101 authored Dec 6, 2023
2 parents 3f000fe + cca7b6a commit 3b982b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/routes/carbon/carbon.ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ exports.get_carbon = async (req, res) => {
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
);
`;
let sqlInsertVal = [userName, carbonEmission, userCode, nCPUcores, CPUpower, usageCPUUsed, memory, memoryPower, countryName, runTime, PUE, PSF, carbonIntensity, provider];
let sqlInsertVal = [carbonEmission, userCode, nCPUcores, CPUpower, usageCPUUsed, memory, memoryPower, countryName, runTime, PUE, PSF, carbonIntensity, provider];
db.query(sqlInsert, sqlInsertVal, function (err, result) {
if (err) {
console.log("query is not executed: " + err);
Expand Down

0 comments on commit 3b982b5

Please sign in to comment.