chore: update to use pascalcase

This commit is contained in:
Jordan Jones
2023-07-30 06:15:31 -07:00
parent 873cee4a79
commit 7af57b06b5
3 changed files with 6 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ export const DatabaseSslCert: string | undefined =
export const DatabaseRejectUnauthorized: boolean =
Boolean(process.env['DATABASE_SSL_REJECT_UNAUTHORIZED']) || false;
export const shouldDatabaseSslEnable: boolean = Boolean(
export const ShouldDatabaseSslEnable: boolean = Boolean(
DatabaseSslCa || (DatabaseSslCert && DatabaseSslKey)
);
@@ -64,7 +64,7 @@ export const ClusterKey: ObjectID = new ObjectID(
process.env['ONEUPTIME_SECRET'] || 'secret'
);
export const hasClusterKey: boolean = Boolean(process.env['ONEUPTIME_SECRET']);
export const HasClusterKey: boolean = Boolean(process.env['ONEUPTIME_SECRET']);
export const Domain: Hostname = Hostname.fromString(
process.env['DOMAIN'] || 'localhost'

View File

@@ -9,7 +9,7 @@ import {
DatabaseSslKey,
DatabaseSslCert,
DatabaseRejectUnauthorized,
shouldDatabaseSslEnable,
ShouldDatabaseSslEnable,
Env,
} from '../Config';
import Entities from 'Model/Models/Index';
@@ -28,7 +28,7 @@ export const dataSourceOptions: DataSourceOptions = {
migrationsTableName: 'migrations',
migrations: Migrations,
entities: Entities,
ssl: shouldDatabaseSslEnable
ssl: ShouldDatabaseSslEnable
? {
rejectUnauthorized: DatabaseRejectUnauthorized,
ca: DatabaseSslCa,

View File

@@ -7,7 +7,7 @@ import {
PROBE_NAME,
} from '../Config';
import URL from 'Common/Types/API/URL';
import { ClusterKey, hasClusterKey } from 'CommonServer/Config';
import { ClusterKey, HasClusterKey } from 'CommonServer/Config';
import logger from 'CommonServer/Utils/Logger';
import HTTPResponse from 'Common/Types/API/HTTPResponse';
import { JSONObject } from 'Common/Types/JSON';
@@ -15,7 +15,7 @@ import LocalCache from 'CommonServer/Infrastructure/LocalCache';
export default class Register {
public static async registerProbe(): Promise<void> {
if (hasClusterKey) {
if (HasClusterKey) {
const resullt: HTTPResponse<JSONObject> = await API.post(
URL.fromString(PROBE_API_URL.toString()).addRoute('/register'),
{