Skip to content

Commit

Permalink
fix eslint linting
Browse files Browse the repository at this point in the history
  • Loading branch information
braiancalot committed Jul 9, 2024
1 parent 64c762c commit 8be2e66
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion infra/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ async function getNewClient() {
return client;
}

export default {
const database = {
query,
getNewClient,
};

export default database;

function getSSLValues() {
if (process.env.POSTGRES_CA) {
return { ca: process.env.POSTGRES_CA };
Expand Down
1 change: 1 addition & 0 deletions infra/migrations/1710240589162_test-migration.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-unused-vars */
/* eslint-disable camelcase */

exports.shorthands = undefined;
Expand Down
3 changes: 1 addition & 2 deletions infra/scripts/wait-for-postgres.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ const { exec } = require("node:child_process");
function checkPostgres() {
exec("docker exec postgres-dev pg_isready --host localhost", handleReturn);

function handleReturn(error, stdout, stderr) {
function handleReturn(error, stdout) {
if (stdout.search("accepting connections") === -1) {
process.stdout.write(".");
// console.log("Não está aceitando conexões ainda.");
checkPostgres();
return;
}
Expand Down
4 changes: 3 additions & 1 deletion tests/orchestrator.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ async function waitForAllServices() {
}
}

export default {
const orchestrator = {
waitForAllServices,
};

export default orchestrator;

0 comments on commit 8be2e66

Please sign in to comment.