Compare commits

...

2 Commits

3 changed files with 706 additions and 377 deletions

View File

@ -37,6 +37,9 @@ Postgres.connect();
Postgres.FirstRow = function(inSQL, args, inResponse) {
Postgres.query(inSQL, args, (err, res) => {
if (err === null) {
//need to test if the response is an object or an array
//inResponse.json(res.rows[0]);
//if (Array.isArray(res)) {}
inResponse.json(res[1].rows[0]);
return;
}

1075
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -140,6 +140,7 @@ FROM
WHERE
pscale.factor <> 0 or pscale.mod_price <> 0
)
, ins AS (
INSERT INTO
tpsv.dcard
SELECT
@ -151,4 +152,6 @@ SELECT
*
FROM
pricing
RETURNING *
)
SELECT COUNT(*) as num_rows FROM ins