Skip to content

Commit 145e7ae

Browse files
committed
npm run format
1 parent 630a735 commit 145e7ae

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

front/production_checks/checks/managed_data_sources_gc.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ import { ModelId } from "@app/lib/databases";
55
import { Err, Ok, Result } from "@app/lib/result";
66
import { CheckFunction } from "@app/production_checks/types/check";
77

8-
const { CORE_DATABASE_URI_RO, FRONT_DATABASE_URI_RO, CONNECTORS_DATABASE_URI_RO } =
9-
process.env;
8+
const {
9+
CORE_DATABASE_URI_RO,
10+
FRONT_DATABASE_URI_RO,
11+
CONNECTORS_DATABASE_URI_RO,
12+
} = process.env;
1013

1114
type CoreDSDocument = {
1215
id: number;
@@ -31,9 +34,12 @@ export const managedDataSourcesGcCheck: CheckFunction = async (
3134
const front_sequelize = new Sequelize(FRONT_DATABASE_URI_RO as string, {
3235
logging: false,
3336
});
34-
const connectorsSequelize = new Sequelize(CONNECTORS_DATABASE_URI_RO as string, {
35-
logging: false,
36-
});
37+
const connectorsSequelize = new Sequelize(
38+
CONNECTORS_DATABASE_URI_RO as string,
39+
{
40+
logging: false,
41+
}
42+
);
3743

3844
const managedDsData = await front_sequelize.query(
3945
'SELECT id, "connectorId", "connectorProvider", "dustAPIProjectId"\

front/production_checks/temporal/activities.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ async function runAllChecks(checks: Check[]) {
3030
logger.info({ reportPayload }, "Check succeeded");
3131
};
3232
const reportFailure = (reportPayload: unknown, message: string) => {
33-
logger.error({ reportPayload, errorMessage: message }, "Production check failed");
33+
logger.error(
34+
{ reportPayload, errorMessage: message },
35+
"Production check failed"
36+
);
3437
};
3538
Context.current().heartbeat({
3639
type: "start",

0 commit comments

Comments
 (0)