不要怂,就是干,撸起袖子干!

Commit 21978ebe by Martin Mena Committed by Sushant

fix(types): add paranoid to UpdateOptions interface (#11647)

1 parent 31258b40
Showing with 3 additions and 1 deletions
...@@ -835,7 +835,7 @@ export interface RestoreOptions extends Logging, Transactionable, Filterable { ...@@ -835,7 +835,7 @@ export interface RestoreOptions extends Logging, Transactionable, Filterable {
/** /**
* Options used for Model.update * Options used for Model.update
*/ */
export interface UpdateOptions extends Logging, Transactionable { export interface UpdateOptions extends Logging, Transactionable, Paranoid {
/** /**
* Options to describe the scope of the search. * Options to describe the scope of the search.
*/ */
......
...@@ -46,6 +46,8 @@ MyModel.build({ int: 10 }, { include: OtherModel }); ...@@ -46,6 +46,8 @@ MyModel.build({ int: 10 }, { include: OtherModel });
MyModel.bulkCreate([{ int: 10 }], { include: OtherModel }); MyModel.bulkCreate([{ int: 10 }], { include: OtherModel });
MyModel.update({}, { where: { foo: 'bar' }, paranoid: false});
const sequelize = new Sequelize('mysql://user:user@localhost:3306/mydb'); const sequelize = new Sequelize('mysql://user:user@localhost:3306/mydb');
MyModel.init({}, { MyModel.init({}, {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!