chore: Suppress AWS deprecation message
This commit is contained in:
@@ -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;
|
||||
|
||||
7
server/typings/index.d.ts
vendored
7
server/typings/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user