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

Commit 7ac8f02f by Vladlen Committed by Sushant

fix(types): silent option for update (#11115)

1 parent 3a914f0c
Showing with 14 additions and 0 deletions
......@@ -863,6 +863,11 @@ export interface UpdateOptions extends Logging, Transactionable {
* How many rows to update (only for mysql and mariadb)
*/
limit?: number;
/**
* If true, the updatedAt timestamp will not be updated.
*/
silent?: boolean;
}
/**
......
......@@ -15,6 +15,15 @@ async function test(): Promise<void> {
user = await User.findOne();
if (!user) {
return;
}
user.update({}, {});
user.update({}, {
silent: true
});
const user2 = await User.create({ firstName: 'John', groupId: 1 });
await User.findAndCountAll({ distinct: true });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!