-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#52 repalce expected area by concentration
- Loading branch information
1 parent
4639207
commit b3e7198
Showing
7 changed files
with
37 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// SPDX-FileCopyrightText: 2024 Marcellino Palerme <[email protected]> | ||
// | ||
// SPDX-License-Identifier: MIT | ||
// this file is used to update the expected concentration of the daughters | ||
// this file is used to update the concentration of the daughters | ||
// of a calibration curve | ||
|
||
import pg from "pg"; | ||
|
@@ -16,10 +16,10 @@ export default defineEventHandler(async (event) => { | |
for(const idFile in body.daughters){ | ||
// for each metabolite of the daughter solution | ||
for(const daughter of body.daughters[idFile]){ | ||
// update expected concentration | ||
// update concentration | ||
lQueryPromises.push(client.query(` | ||
UPDATE daughter | ||
SET expected = ${daughter.expectedArea} | ||
SET concentration = ${daughter.concentration} | ||
WHERE id_file = ${idFile} | ||
AND id_mol = '${daughter.nameMeta}' | ||
AND id_calib_curves = ${body.idCalibCurve}` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters