diff --git a/.env.example b/.env.example index 40d6f63b47..52fdb02c5f 100644 --- a/.env.example +++ b/.env.example @@ -77,3 +77,6 @@ INIT_ALI_SMS_VERIFY_CODE_SIGN= # use any string name (no space) DEFAULT_SMS_VERIFY_CODE_PROVIDER= + +# in nodejs 17+ that SSL v3 causes some ecosystem libraries to become incompatible. Configuring this option can prevent upgrading SSL V3 +# NODE_OPTIONS=--openssl-legacy-provider diff --git a/packages/core/database/src/database.ts b/packages/core/database/src/database.ts index 5637660568..8aa902c1de 100644 --- a/packages/core/database/src/database.ts +++ b/packages/core/database/src/database.ts @@ -534,7 +534,7 @@ export class Database extends EventEmitter implements AsyncEmitter { return this.sequelize.getDialect() === 'sqlite' && lodash.get(this.options, 'storage') == ':memory:'; } - async auth(options: QueryOptions & { retry?: number } = {}) { + async auth(options: Omit & { retry?: number | Pick } = {}) { const { retry = 10, ...others } = options; const delay = (ms) => new Promise((yea) => setTimeout(yea, ms)); let count = 1; diff --git a/packages/plugins/import/src/server/actions/importXlsx.ts b/packages/plugins/import/src/server/actions/importXlsx.ts index f74fe85bd9..a1290925a0 100644 --- a/packages/plugins/import/src/server/actions/importXlsx.ts +++ b/packages/plugins/import/src/server/actions/importXlsx.ts @@ -7,7 +7,7 @@ import { transform } from '../utils'; const IMPORT_LIMIT_COUNT = 10000; export async function importXlsx(ctx: Context, next: Next) { - let { columns } = ctx.request.body; + let { columns } = ctx.request.body as any; const { ['file']: file } = ctx; const { resourceName, resourceOf } = ctx.action; if (typeof columns === 'string') {