chore: Suppress AWS deprecation message

This commit is contained in:
Tom Moor
2024-02-25 11:11:36 -05:00
parent 2ec4ff3cd0
commit d42a493d8b
2 changed files with 11 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import env from "./env";
import "./logging/tracer"; // must come before importing any instrumented module
import maintance from "aws-sdk/lib/maintenance_mode_message";
import http from "http";
import https from "https";
import Koa from "koa";
@@ -26,6 +27,9 @@ import { checkConnection, sequelize } from "./storage/database";
import RedisAdapter from "./storage/redis";
import Metrics from "./logging/Metrics";
// Suppress the AWS maintenance message until upgrade to v3.
maintance.suppress = true;
// The number of processes to run, defaults to the number of CPU's available
// for the web service, and 1 for collaboration during the beta period.
let webProcessCount = env.WEB_CONCURRENCY;

View File

@@ -21,3 +21,10 @@ declare module "@joplin/turndown-plugin-gfm" {
export const taskListItems: Plugin;
export const gfm: Plugin;
}
declare module "aws-sdk/lib/maintenance_mode_message" {
const maintance: {
suppress: boolean;
};
export default maintance;
}