Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 7ac8f02f
authored
Jul 03, 2019
by
Vladlen
Committed by
Sushant
Jul 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(types): silent option for update (#11115)
1 parent
3a914f0c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
types/lib/model.d.ts
types/test/usage.ts
types/lib/model.d.ts
View file @
7ac8f02
...
...
@@ -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
;
}
/**
...
...
types/test/usage.ts
View file @
7ac8f02
...
...
@@ -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
});
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment