diff --git a/packages/core/database/src/database.ts b/packages/core/database/src/database.ts index 0b621b2f41..60c2f027e4 100644 --- a/packages/core/database/src/database.ts +++ b/packages/core/database/src/database.ts @@ -15,9 +15,9 @@ import { EventEmitter } from 'events'; import { backOff } from 'exponential-backoff'; import glob from 'glob'; import lodash from 'lodash'; -import safeJsonStringify from 'safe-json-stringify'; import { nanoid } from 'nanoid'; import { basename, isAbsolute, resolve } from 'path'; +import safeJsonStringify from 'safe-json-stringify'; import semver from 'semver'; import { DataTypes, @@ -45,6 +45,8 @@ import { Field, FieldContext, RelationField } from './fields'; import { checkDatabaseVersion } from './helpers'; import { InheritedCollection } from './inherited-collection'; import InheritanceMap from './inherited-map'; +import { InterfaceManager } from './interface-manager'; +import { registerInterfaces } from './interfaces/utils'; import { registerBuiltInListeners } from './listeners'; import { MigrationItem, Migrations } from './migration'; import { Model } from './model'; @@ -84,8 +86,6 @@ import { import { patchSequelizeQueryInterface, snakeCase } from './utils'; import { BaseValueParser, registerFieldValueParsers } from './value-parsers'; import { ViewCollection } from './view-collection'; -import { InterfaceManager } from './interface-manager'; -import { registerInterfaces } from './interfaces/utils'; export type MergeOptions = merge.Options; @@ -811,7 +811,7 @@ export class Database extends EventEmitter implements AsyncEmitter { /* istanbul ignore next -- @preserve */ async auth(options: Omit & { retry?: number | Pick } = {}) { - const { retry = 5, ...others } = options; + const { retry = 9, ...others } = options; const startingDelay = 50; const timeMultiple = 2;