Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pan261 committed Feb 2, 2022
1 parent 6a60837 commit 2693d25
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
env_file: ./.env
volumes:
- ./postgres/db_data/:/var/lib/postgresql/data/
- ./postgres/sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
- ./postgres/init/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
ports:
- ${PORT_DB}:${PORT_DB}

Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const pool = createPool({
.then(() => {
console.log("successfully connected to db")
resolve(client);
}).catch((err) => {
}).catch((err: any) => {
console.log()
console.log(err)
reject(err);
Expand Down Expand Up @@ -48,7 +48,7 @@ const executeQuery = (query: Query) => {
console.log("client released back into pool")
});
return result;
}).catch(err => {
}).catch((err: any) => {
console.log(err);
})
}
Expand Down

0 comments on commit 2693d25

Please sign in to comment.