File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -690,6 +690,7 @@ export class Sequelize extends SequelizeOrigin {
690690 }
691691
692692 for ( const entity of entities ) {
693+ // noinspection SuspiciousTypeOfGuard
693694 if ( entity instanceof BaseModel && options ) {
694695 // noinspection TypeScriptUnresolvedVariable
695696 ( entity as any ) . _options . returning = (
@@ -1019,7 +1020,7 @@ export abstract class BaseModel<T> extends Model<BaseModel<T>> {
10191020 * @return {BaseModel }
10201021 */
10211022 public fixNumbers ( ) : BaseModel < T > {
1022- const model : BaseModel < T > = this . sequelize . models [
1023+ const model = this . sequelize . models [
10231024 this . constructor . name
10241025 ] as any as BaseModel < T > ;
10251026 const columns = Object . keys ( ( model as any ) . rawAttributes ) ;
You can’t perform that action at this time.
0 commit comments