Skip to content

Commit

Permalink
fix(database): db auth default retry 9 times
Browse files Browse the repository at this point in the history
  • Loading branch information
chenos committed Jun 19, 2024
1 parent 95666a9 commit d685154
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/database/src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -811,7 +811,7 @@ export class Database extends EventEmitter implements AsyncEmitter {

/* istanbul ignore next -- @preserve */
async auth(options: Omit<QueryOptions, 'retry'> & { retry?: number | Pick<QueryOptions, 'retry'> } = {}) {
const { retry = 5, ...others } = options;
const { retry = 9, ...others } = options;
const startingDelay = 50;
const timeMultiple = 2;

Expand Down

0 comments on commit d685154

Please sign in to comment.