Skip to content

Commit

Permalink
npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
lasryaric committed Nov 13, 2023
1 parent 630a735 commit 145e7ae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
16 changes: 11 additions & 5 deletions front/production_checks/checks/managed_data_sources_gc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ import { ModelId } from "@app/lib/databases";
import { Err, Ok, Result } from "@app/lib/result";
import { CheckFunction } from "@app/production_checks/types/check";

const { CORE_DATABASE_URI_RO, FRONT_DATABASE_URI_RO, CONNECTORS_DATABASE_URI_RO } =
process.env;
const {
CORE_DATABASE_URI_RO,
FRONT_DATABASE_URI_RO,
CONNECTORS_DATABASE_URI_RO,
} = process.env;

type CoreDSDocument = {
id: number;
Expand All @@ -31,9 +34,12 @@ export const managedDataSourcesGcCheck: CheckFunction = async (
const front_sequelize = new Sequelize(FRONT_DATABASE_URI_RO as string, {
logging: false,
});
const connectorsSequelize = new Sequelize(CONNECTORS_DATABASE_URI_RO as string, {
logging: false,
});
const connectorsSequelize = new Sequelize(
CONNECTORS_DATABASE_URI_RO as string,
{
logging: false,
}
);

const managedDsData = await front_sequelize.query(
'SELECT id, "connectorId", "connectorProvider", "dustAPIProjectId"\
Expand Down
5 changes: 4 additions & 1 deletion front/production_checks/temporal/activities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ async function runAllChecks(checks: Check[]) {
logger.info({ reportPayload }, "Check succeeded");
};
const reportFailure = (reportPayload: unknown, message: string) => {
logger.error({ reportPayload, errorMessage: message }, "Production check failed");
logger.error(
{ reportPayload, errorMessage: message },
"Production check failed"
);
};
Context.current().heartbeat({
type: "start",
Expand Down

0 comments on commit 145e7ae

Please sign in to comment.