upgrade to node 16, add search by full product id (#84)

This commit is contained in:
Anders Gustafsson
2021-11-02 10:57:11 +01:00
committed by GitHub
parent 043f1455cf
commit 0afe689200
10 changed files with 260 additions and 2892 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import {
StartedTestContainer,
Wait,
} from 'testcontainers';
import Knex from 'knex';
import { Knex, knex } from 'knex';
// import knexTinyLogger from 'knex-tiny-logger';
export const DbNetworkName = 'postgres_container';
@@ -26,7 +26,7 @@ const runFile = async (db, file) => {
const createKnexDb = (host: string, mappedPort: number, database: string) => {
const connection = `postgresql://testuser:test@${host}:${mappedPort}/${database}`;
// console.log(`connection`, connection);
const db = Knex({
const db = knex({
client: 'pg',
connection: connection,
pool: { min: 0 },