From 207d12c470598027e004b252536057ca87b24253 Mon Sep 17 00:00:00 2001
From: Hanen Alrwasheda <alrwasheda@mi.fu-berlin.de>
Date: Mon, 6 Dec 2021 04:58:36 +0100
Subject: [PATCH] some salt according to:
 https://git.imp.fu-berlin.de/swp-ws21-fahrtenbuch/team-einhorn/fahrtenbuch/-/merge_requests/7#note_79858

---
 server/src/db/seqConnection.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/db/seqConnection.ts b/server/src/db/seqConnection.ts
index e816b22..8196a18 100644
--- a/server/src/db/seqConnection.ts
+++ b/server/src/db/seqConnection.ts
@@ -1,6 +1,6 @@
 import { Sequelize } from "sequelize";
 import envVars from "./config";
-const pg = require("pg")
+const pg = require("pg");
 const { Client, QueryResult } = pg;
 
 let sequelizeConnection = new Sequelize(
@@ -24,7 +24,7 @@ export const createTableIfNotExists = async () => {
   await client.connect();
 
   //search for db in pg-catalog. if not found, create a one
-  await client
+  const tables = client
     .query(`SELECT * FROM pg_database WHERE datname = '${envVars.dbName}'`)
     .then((res: typeof QueryResult) => {
       //------------------------------------------------then
-- 
GitLab